![]() |
QMCPACK
|
An abstract base class to implement a One-Dimensional grid. More...
Public Types | |
using | value_type = T |
using | Array_t = CT |
Public Member Functions | |
OneDimGridBase () | |
virtual std::unique_ptr< OneDimGridBase< T, CT > > | makeClone () const =0 |
virtual | ~OneDimGridBase ()=default |
int | getGridTag () const |
int | getIndex (T r) const |
T & | operator[] (int i) |
assign a value More... | |
T & | operator() (int i) |
assign a value More... | |
T | operator[] (int i) const |
return a value More... | |
T | operator() (int i) const |
return a value More... | |
const T * | data () const |
T * | data () |
T | dh () const |
return the differential spacing of the grid More... | |
T | r (int i) const |
returns ![]() | |
T | dr (int i) const |
returns ![]() | |
int | size () const |
returns the size of the grid More... | |
T | rmin () const |
return the first grid point More... | |
T | rmax () const |
return the last grid point More... | |
template<typename T1 > | |
int | getIndexAndDistanceFromGridPoint (T r, T1 &dist) const |
virtual int | locate (T r) const =0 |
evaluate the index of r More... | |
virtual void | set (T ri, T rf, int n)=0 |
Set the grid given the parameters. More... | |
Public Attributes | |
int | GridTag |
int | num_points |
value_type | lower_bound |
value_type | upper_bound |
value_type | Delta |
differential spacing of the grid More... | |
double | DeltaInv |
Array_t | X |
array to store the radial grid data More... | |
An abstract base class to implement a One-Dimensional grid.
Definition at line 35 of file OneDimGridBase.h.
using Array_t = CT |
Definition at line 38 of file OneDimGridBase.h.
using value_type = T |
Definition at line 37 of file OneDimGridBase.h.
|
inline |
Definition at line 53 of file OneDimGridBase.h.
|
virtualdefault |
|
inline |
Definition at line 86 of file OneDimGridBase.h.
|
inline |
Definition at line 87 of file OneDimGridBase.h.
|
inline |
return the differential spacing of the grid
Definition at line 90 of file OneDimGridBase.h.
Referenced by qmcplusplus::TEST_CASE().
|
inline |
returns
Definition at line 94 of file OneDimGridBase.h.
Referenced by qmcplusplus::TEST_CASE().
|
inline |
Definition at line 59 of file OneDimGridBase.h.
|
inline |
Definition at line 61 of file OneDimGridBase.h.
Referenced by SkParserBase::compute_sk().
|
inline |
Definition at line 103 of file OneDimGridBase.h.
|
pure virtual |
evaluate the index of r
r | current position |
The grid index satisfies .
Implemented in NumericalGrid< T, CT >, LogGridZero< T, CT >, LogGrid< T, CT >, LinearGrid< T, CT >, and LinearGrid< RealType >.
Referenced by OneDimGridBase< RealType, Vector< RealType > >::getIndexAndDistanceFromGridPoint().
|
pure virtual |
Implemented in NumericalGrid< T, CT >, LogGridZero< T, CT >, LogGrid< T, CT >, LinearGrid< T, CT >, and LinearGrid< RealType >.
Referenced by A2NTransformer< T, FnIn >::convert().
|
inline |
assign a value
Definition at line 80 of file OneDimGridBase.h.
|
inline |
return a value
Definition at line 84 of file OneDimGridBase.h.
|
inline |
assign a value
Definition at line 78 of file OneDimGridBase.h.
|
inline |
return a value
Definition at line 82 of file OneDimGridBase.h.
|
inline |
returns
Definition at line 92 of file OneDimGridBase.h.
Referenced by OneDimGridBase< RealType, Vector< RealType > >::getIndex(), OneDimGridBase< RealType, Vector< RealType > >::getIndexAndDistanceFromGridPoint(), LinearGrid< RealType >::locate(), LogGrid< T, CT >::locate(), LogGridZero< T, CT >::locate(), and NumericalGrid< T, CT >::locate().
|
inline |
return the last grid point
Definition at line 100 of file OneDimGridBase.h.
Referenced by A2NTransformer< T, FnIn >::convert(), ECPComponentBuilder::createVrWithBasisGroup(), SkParserBase::get_grid(), CubicSplineSingle< RT, FNOUT >::initialize(), CubicSplineBasisSet< RT >::initialize(), CuspCorrectionAtomicBasis< T >::initializeRadialSet(), OneDimLinearSpline< Td, Tg, CTd, CTg >::OneDimLinearSpline(), and qmcplusplus::TEST_CASE().
|
inline |
return the first grid point
Definition at line 98 of file OneDimGridBase.h.
Referenced by A2NTransformer< T, FnIn >::convert(), SkParserBase::get_grid(), OneDimLinearSpline< Td, Tg, CTd, CTg >::OneDimLinearSpline(), and qmcplusplus::TEST_CASE().
|
pure virtual |
Set the grid given the parameters.
ri | initial grid point |
rf | final grid point |
n | number of grid points |
Implemented in NumericalGrid< T, CT >, LogGridZero< T, CT >, LogGrid< T, CT >, LinearGrid< T, CT >, and LinearGrid< RealType >.
|
inline |
returns the size of the grid
Definition at line 96 of file OneDimGridBase.h.
Referenced by SkParserBase::compute_sk(), A2NTransformer< T, FnIn >::convert(), qmcplusplus::createSpline4RbyVs_temp(), qmcplusplus::createSpline4RbyVsDeriv_temp(), ECPComponentBuilder::createVrWithBasisGroup(), SkParserBase::get_grid(), OneDimGridBase< RealType, Vector< RealType > >::getIndex(), CubicSplineSingle< RT, FNOUT >::initialize(), CubicSplineBasisSet< RT >::initialize(), BackflowBuilder::makeShortRange_twoBody(), and qmcplusplus::TEST_CASE().
value_type Delta |
differential spacing of the grid
Definition at line 46 of file OneDimGridBase.h.
Referenced by NumericalGrid< T, CT >::assign(), OneDimGridBase< RealType, Vector< RealType > >::dh(), LinearGrid< RealType >::einspline_grid(), LinearGrid< RealType >::set(), LogGrid< T, CT >::set(), and LogGridZero< T, CT >::set().
double DeltaInv |
Definition at line 47 of file OneDimGridBase.h.
Referenced by LinearGrid< RealType >::einspline_grid(), LinearGrid< RealType >::locate(), and LinearGrid< RealType >::set().
int GridTag |
Definition at line 41 of file OneDimGridBase.h.
Referenced by OneDimGridBase< RealType, Vector< RealType > >::getGridTag(), NumericalGrid< T, CT >::NumericalGrid(), LinearGrid< RealType >::set(), LogGrid< T, CT >::set(), and LogGridZero< T, CT >::set().
value_type lower_bound |
Definition at line 43 of file OneDimGridBase.h.
Referenced by NumericalGrid< T, CT >::assign(), LinearGrid< RealType >::einspline_grid(), QMCFiniteSize::getSkSpline(), OneDimGridBase< RealType, Vector< RealType > >::rmin(), LinearGrid< RealType >::set(), LogGrid< T, CT >::set(), LogGridZero< T, CT >::set(), NumericalGrid< T, CT >::set(), and QMCFiniteSize::sphericalAvgSk().
int num_points |
Definition at line 42 of file OneDimGridBase.h.
Referenced by NumericalGrid< T, CT >::assign(), LinearGrid< RealType >::einspline_grid(), NumericalGrid< T, CT >::locate(), LinearGrid< RealType >::set(), LogGrid< T, CT >::set(), LogGridZero< T, CT >::set(), NumericalGrid< T, CT >::set(), and OneDimGridBase< RealType, Vector< RealType > >::size().
value_type upper_bound |
Definition at line 44 of file OneDimGridBase.h.
Referenced by NumericalGrid< T, CT >::assign(), LinearGrid< RealType >::einspline_grid(), QMCFiniteSize::getSkSpline(), OneDimGridBase< RealType, Vector< RealType > >::rmax(), LinearGrid< RealType >::set(), LogGrid< T, CT >::set(), LogGridZero< T, CT >::set(), NumericalGrid< T, CT >::set(), and QMCFiniteSize::sphericalAvgSk().
Array_t X |
array to store the radial grid data
Definition at line 50 of file OneDimGridBase.h.
Referenced by NumericalGrid< T, CT >::assign(), OneDimGridBase< RealType, Vector< RealType > >::data(), OneDimGridBase< RealType, Vector< RealType > >::dr(), OneDimGridBase< RealType, Vector< RealType > >::getIndex(), OneDimGridBase< RealType, Vector< RealType > >::getIndexAndDistanceFromGridPoint(), LinearGrid< RealType >::locate(), LogGrid< T, CT >::locate(), NumericalGrid< T, CT >::locate(), OneDimGridBase< RealType, Vector< RealType > >::operator()(), OneDimGridBase< RealType, Vector< RealType > >::operator[](), OneDimGridBase< RealType, Vector< RealType > >::r(), NumericalGrid< T, CT >::resize(), LinearGrid< RealType >::set(), LogGrid< T, CT >::set(), and LogGridZero< T, CT >::set().