17 #ifndef QMCPLUSPLUS_ONEDIMNUMGRIDFUNCTOR_H 18 #define QMCPLUSPLUS_ONEDIMNUMGRIDFUNCTOR_H 45 void put(
int npoints, std::istream& fin)
50 for (
int j = 0; j < npoints; j++)
52 fin >> myGrid(j) >>
myFunc(j);
54 myGrid.set(myGrid(0), myGrid(npoints - 1), npoints);
55 T yprime_i = (
myFunc(1) -
myFunc(0)) / (myGrid(1) - myGrid(0));
59 bool put(xmlNodePtr cur) {
return true; }
helper functions for EinsplineSetBuilder
T operator()(int i) const
std::unique_ptr< grid_type > m_grid
pointer to the radial grid
value_type splint(point_type r) const override
void spline(int imin, value_type yp1, int imax, value_type ypn) override
Evaluate the 2nd derivative on the grid points.
Decalaration of One-Dimesional grids.
void put(int npoints, std::istream &fin)
One-Dimensional numerical grid with arbitrary grid spacings.
adaptor class to handle a temporary OneDimCubicSpline on a numerical grid.
void resize(int n)
resize the number of data points