![]() |
QMCPACK
|
Public Types | |
using | base_type = OneDimGridFunctor< Td, Tg, CTd, CTg > |
using | value_type = typename base_type::value_type |
using | point_type = typename base_type::point_type |
using | data_type = typename base_type::data_type |
using | grid_type = typename base_type::grid_type |
![]() | |
using | value_type = Td |
the type of the value on a grid More... | |
using | point_type = Tg |
the type of the grid value More... | |
using | data_type = CTd |
the type of the containers Y, dY and d2Y More... | |
using | grid_type = OneDimGridBase< Tg, CTg > |
the grid type More... | |
using | this_type = OneDimGridFunctor< Td, Tg, CTd, CTg > |
the type of this class More... | |
Public Member Functions | |
OneDimCubicSpline (std::unique_ptr< grid_type > gt=std::unique_ptr< grid_type >()) | |
template<class VV > | |
OneDimCubicSpline (std::unique_ptr< grid_type > gt, const VV &nv) | |
OneDimCubicSpline * | makeClone () const |
OneDimCubicSpline (const OneDimCubicSpline &a) | |
value_type | splint (point_type r) const override |
value_type | splint (point_type r, value_type &du, value_type &d2u) const override |
Interpolation to evaluate the function and itsderivatives. More... | |
value_type | splint (point_type r, value_type &du, value_type &d2u, value_type &d3u) const |
Interpolation to evaluate the function and itsderivatives. More... | |
void | spline (int imin, value_type yp1, int imax, value_type ypn) override |
Evaluate the 2nd derivative on the grid points. More... | |
void | spline () override |
![]() | |
OneDimGridFunctor (std::unique_ptr< grid_type > gt=std::unique_ptr< grid_type >()) | |
constructor More... | |
OneDimGridFunctor (const OneDimGridFunctor &a) | |
virtual | ~OneDimGridFunctor ()=default |
template<typename TT > | |
void | resetParameters (const TT &active) |
void | setNumOfNodes (int n) |
set the number of nodes More... | |
int | getNumOfNodes () const |
return the number of nodes More... | |
value_type * | data () |
return the grid data More... | |
const value_type * | data () const |
assign the grid data More... | |
int | size () const |
return the number of data points More... | |
void | resize (int n) |
resize the number of data points More... | |
const grid_type & | grid () const |
return the radial grid More... | |
grid_type & | grid () |
assign a radial grid More... | |
value_type | operator() (int i) const |
returns a value More... | |
value_type & | operator() (int i) |
asign a value at i More... | |
point_type | dh () const |
return the address of the values More... | |
point_type | r (int i) const |
return ![]() | |
point_type | dr (int i) const |
return ![]() | |
value_type | f (point_type r) |
Evaluate the function and its derivatives, store the derivatives. More... | |
value_type | df (point_type r) |
Evaluate the function and its derivatives, store the derivatives. More... | |
value_type | evaluate (point_type r, point_type rinv) |
Evaluate the function value only. More... | |
value_type | evaluateAll (point_type r, point_type rinv) |
Evaluate the function and its derivatives. More... | |
virtual value_type | splint (point_type r, value_type &du, value_type &d2u) const |
virtual value_type | splint (point_type r) const |
virtual void | spline (int imin, value_type yp1, int imax, value_type ypn) |
value_type | evaluate (point_type r, point_type rinv, value_type &du, value_type &d2u) |
Evaluate the function and its derivatives. More... | |
Public Attributes | |
data_type | m_Y2 |
point_type | r_min |
point_type | r_max |
value_type | first_deriv |
value_type | last_deriv |
value_type | ConstValue |
value_type | d2Y |
store the second derivative of the function More... | |
value_type | dY |
store the derivative of the function More... | |
std::unique_ptr< grid_type > | m_grid |
pointer to the radial grid More... | |
data_type | m_Y |
data for the function on the grid More... | |
value_type | Y |
store the value of the function More... | |
int | NumNodes |
the number of nodes More... | |
![]() | |
std::unique_ptr< grid_type > | m_grid |
pointer to the radial grid More... | |
value_type | Y |
store the value of the function More... | |
value_type | dY |
store the derivative of the function More... | |
value_type | d2Y |
store the second derivative of the function More... | |
data_type | m_Y |
data for the function on the grid More... | |
int | NumNodes |
the number of nodes More... | |
Definition at line 153 of file OneDimCubicSpline.h.
using base_type = OneDimGridFunctor<Td, Tg, CTd, CTg> |
Definition at line 156 of file OneDimCubicSpline.h.
using data_type = typename base_type::data_type |
Definition at line 159 of file OneDimCubicSpline.h.
using grid_type = typename base_type::grid_type |
Definition at line 160 of file OneDimCubicSpline.h.
using point_type = typename base_type::point_type |
Definition at line 158 of file OneDimCubicSpline.h.
using value_type = typename base_type::value_type |
Definition at line 157 of file OneDimCubicSpline.h.
|
inline |
Definition at line 183 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::makeClone().
|
inline |
Definition at line 186 of file OneDimCubicSpline.h.
|
inline |
Definition at line 196 of file OneDimCubicSpline.h.
|
inline |
Definition at line 194 of file OneDimCubicSpline.h.
|
inlineoverride |
Evaluate the 2nd derivative on the grid points.
imin | the index of the first valid data point |
yp1 | the derivative at the imin-th grid point |
imax | the index of the last valid data point |
ypn | the derivative at the imax-th grid point |
In general, a grid is shared by several OneDimCubicSpline objects and each object can have its own range of valid grid points. r_min and r_max are used to specify the range.
Definition at line 294 of file OneDimCubicSpline.h.
Referenced by ECPComponentBuilder::buildL2(), ECPComponentBuilder::buildSO(), ECPComponentBuilder::createVrWithBasisGroup(), ECPComponentBuilder::doBreakUp(), OneDimNumGridFunctor< T >::put(), and qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
Reimplemented from OneDimGridFunctor< Td, Tg, CTd, CTg >.
Definition at line 309 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::spline().
|
inlineoverride |
Definition at line 207 of file OneDimCubicSpline.h.
Referenced by OneDimNumGridFunctor< T >::splint(), and qmcplusplus::TEST_CASE().
|
inlineoverride |
Interpolation to evaluate the function and itsderivatives.
r | the radial distance |
du | return the derivative |
d2u | return the 2nd derivative |
Definition at line 231 of file OneDimCubicSpline.h.
|
inline |
Interpolation to evaluate the function and itsderivatives.
r | the radial distance |
du | return the derivative |
d2u | return the 2nd derivative |
d3u | return the 3nd derivative |
Definition at line 260 of file OneDimCubicSpline.h.
value_type ConstValue |
Definition at line 177 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::OneDimCubicSpline(), OneDimCubicSplineLinearGrid< T >::OneDimCubicSplineLinearGrid(), OneDimCubicSpline< T >::spline(), and OneDimCubicSpline< T >::splint().
value_type d2Y |
store the second derivative of the function
Definition at line 191 of file OneDimGridFunctor.h.
value_type dY |
store the derivative of the function
Definition at line 189 of file OneDimGridFunctor.h.
value_type first_deriv |
Definition at line 175 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::OneDimCubicSpline(), OneDimCubicSplineLinearGrid< T >::OneDimCubicSplineLinearGrid(), OneDimCubicSpline< T >::spline(), and OneDimCubicSpline< T >::splint().
value_type last_deriv |
Definition at line 176 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::OneDimCubicSpline(), and OneDimCubicSpline< T >::spline().
std::unique_ptr<grid_type> m_grid |
pointer to the radial grid
Definition at line 184 of file OneDimGridFunctor.h.
Referenced by OneDimNumGridFunctor< T >::OneDimNumGridFunctor(), OneDimNumGridFunctor< T >::put(), OneDimNumGridFunctor< T >::r(), OneDimNumGridFunctor< T >::rmax(), and OneDimNumGridFunctor< T >::rmin().
data_type m_Y |
data for the function on the grid
Definition at line 194 of file OneDimGridFunctor.h.
Referenced by OneDimCubicSplineLinearGrid< T >::OneDimCubicSplineLinearGrid().
data_type m_Y2 |
Definition at line 169 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::OneDimCubicSpline(), OneDimCubicSplineLinearGrid< T >::OneDimCubicSplineLinearGrid(), OneDimCubicSpline< T >::spline(), and OneDimCubicSpline< T >::splint().
int NumNodes |
the number of nodes
Definition at line 197 of file OneDimGridFunctor.h.
point_type r_max |
Definition at line 174 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::OneDimCubicSpline(), OneDimCubicSpline< T >::spline(), and OneDimCubicSpline< T >::splint().
point_type r_min |
Definition at line 173 of file OneDimCubicSpline.h.
Referenced by OneDimCubicSpline< T >::OneDimCubicSpline(), OneDimCubicSpline< T >::spline(), and OneDimCubicSpline< T >::splint().
store the value of the function
Definition at line 187 of file OneDimGridFunctor.h.