44 namespace LibUtilities
59 for(
unsigned int i=0;i<
npts;++i)
79 boost::shared_ptr<PointsBaseType> ptr =
PointsManager()[gaussKey];
80 Array<OneD, const NekDouble> z;
81 Array<OneD, const NekDouble> w;
84 for(
unsigned int i=0; i<
npts;++i)
87 for(
unsigned j=0;j<
npts;++j)
111 for(
unsigned int i=0;i<
npts;++i)
124 returnval->Initialize();
131 ASSERTL0(pkey.
GetPointsDim()==1,
"Gauss Points can only interp to other 1d point distributions");
134 Array<OneD, const NekDouble> xpoints;
138 return GetI(numpoints, xpoints);
141 const boost::shared_ptr<NekMatrix<NekDouble> >
PolyEPoints::GetI(
const Array<OneD, const NekDouble>& x)
146 return GetI(numpoints, x);
149 const boost::shared_ptr<NekMatrix<NekDouble> >
PolyEPoints::GetI(
unsigned int numpoints,
const Array<OneD, const NekDouble>& x)
151 Array<OneD, NekDouble> interp(
GetNumPoints()*numpoints);
157 boost::shared_ptr< NekMatrix<NekDouble> > returnval(
MemoryManager<NekMatrix<NekDouble> >::AllocateSharedPtr(numpoints,np, d));
164 const Array<OneD, const NekDouble>& funcvals)
168 for(
int i=0;i<
npts;++i)
180 for(
int i=0;i<pt; ++i)
182 h = h * (x - xpts[i])/(xpts[pt]-xpts[i]);
185 for(
int i=pt+1;i<
npts;++i)
187 h = h * (x - xpts[i])/(xpts[pt]-xpts[i]);
198 for(
int j=0;j<
npts;++j)
203 for(
int i=0;i<
npts;++i)
211 h = h/(xpts[pt]-xpts[i]);