QMCPACK
OneDimConstFunctor< Td, Tg, CTd, CTg > Class Template Reference

One-dimensional grid functor that returns a constant. More...

+ Inheritance diagram for OneDimConstFunctor< Td, Tg, CTd, CTg >:
+ Collaboration diagram for OneDimConstFunctor< Td, Tg, CTd, CTg >:

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
 
- Public Types inherited from OneDimGridFunctor< Td, Tg, CTd, CTg >
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

 OneDimConstFunctor (grid_type *gt=0)
 
value_type splint (point_type r) const override
 
value_type splint (point_type r, value_type &du, value_type &d2u) const override
 
void spline (int imin, value_type yp1, int imax, value_type ypn)
 
void spline ()
 
- Public Member Functions inherited from OneDimGridFunctor< Td, Tg, CTd, CTg >
 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_typedata ()
 return the grid data More...
 
const value_typedata () 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_typegrid () const
 return the radial grid More...
 
grid_typegrid ()
 assign a radial grid More...
 
value_type operator() (int i) const
 returns a value More...
 
value_typeoperator() (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 $r(i)$ the grid point at index i More...
 
point_type dr (int i) const
 return $r(i+1)-r(i)$ More...
 
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...
 
value_type evaluate (point_type r, point_type rinv, value_type &du, value_type &d2u)
 Evaluate the function and its derivatives. More...
 

Public Attributes

Td ConstValue
 
- Public Attributes inherited from OneDimGridFunctor< Td, Tg, CTd, CTg >
std::unique_ptr< grid_typem_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...
 

Detailed Description

template<class Td, class Tg = Td, class CTd = Vector<Td>, class CTg = Vector<Tg>>
class qmcplusplus::OneDimConstFunctor< Td, Tg, CTd, CTg >

One-dimensional grid functor that returns a constant.

Definition at line 206 of file OneDimGridFunctor.h.

Member Typedef Documentation

◆ base_type

using base_type = OneDimGridFunctor<Td, Tg, CTd, CTg>

Definition at line 210 of file OneDimGridFunctor.h.

◆ data_type

using data_type = typename base_type::data_type

Definition at line 213 of file OneDimGridFunctor.h.

◆ grid_type

using grid_type = typename base_type::grid_type

Definition at line 214 of file OneDimGridFunctor.h.

◆ point_type

Definition at line 212 of file OneDimGridFunctor.h.

◆ value_type

Definition at line 211 of file OneDimGridFunctor.h.

Constructor & Destructor Documentation

◆ OneDimConstFunctor()

OneDimConstFunctor ( grid_type gt = 0)
inline

Definition at line 217 of file OneDimGridFunctor.h.

217 : base_type(gt), ConstValue(0.0) {}
OneDimGridFunctor< Td, Tg, CTd, CTg > base_type

Member Function Documentation

◆ spline() [1/2]

void spline ( int  imin,
value_type  yp1,
int  imax,
value_type  ypn 
)
inlinevirtual

Reimplemented from OneDimGridFunctor< Td, Tg, CTd, CTg >.

Definition at line 228 of file OneDimGridFunctor.h.

228 {}

◆ spline() [2/2]

void spline ( )
inlinevirtual

Reimplemented from OneDimGridFunctor< Td, Tg, CTd, CTg >.

Definition at line 230 of file OneDimGridFunctor.h.

230 {}

◆ splint() [1/2]

value_type splint ( point_type  r) const
inlineoverridevirtual

◆ splint() [2/2]

value_type splint ( point_type  r,
value_type du,
value_type d2u 
) const
inlineoverridevirtual

Reimplemented from OneDimGridFunctor< Td, Tg, CTd, CTg >.

Definition at line 221 of file OneDimGridFunctor.h.

References OneDimConstFunctor< Td, Tg, CTd, CTg >::ConstValue.

222  {
223  du = 0.0;
224  d2u = 0.0;
225  return ConstValue;
226  }

Member Data Documentation

◆ ConstValue

Td ConstValue

Definition at line 209 of file OneDimGridFunctor.h.

Referenced by OneDimConstFunctor< Td, Tg, CTd, CTg >::splint().


The documentation for this class was generated from the following file: