![]() |
QMCPACK
|
One-Dimensional numerical grid with arbitrary grid spacings. More...
Public Member Functions | |
NumericalGrid () | |
template<class VA > | |
NumericalGrid (const VA &nv) | |
std::unique_ptr< OneDimGridBase< T, CT > > | makeClone () const override |
template<class IT > | |
void | assign (IT g_first, IT g_last) |
void | resize (int n) |
int | locate (T r) const override |
evaluate the index of r More... | |
void | set (T ri, T rf, int n) override |
Set the grid given the parameters. More... | |
![]() | |
OneDimGridBase () | |
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 |
Additional Inherited Members | |
![]() | |
using | value_type = T |
using | Array_t = CT |
![]() | |
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... | |
One-Dimensional numerical grid with arbitrary grid spacings.
Non-Analytic grid, uses an array of values (typically read in from a file).
Definition at line 277 of file OneDimGridBase.h.
|
inline |
Definition at line 286 of file OneDimGridBase.h.
References CUSTOM_1DGRID, and OneDimGridBase< T, CT >::GridTag.
|
inline |
Definition at line 289 of file OneDimGridBase.h.
References NumericalGrid< T, CT >::assign(), CUSTOM_1DGRID, and OneDimGridBase< T, CT >::GridTag.
|
inline |
Definition at line 302 of file OneDimGridBase.h.
References copy(), OneDimGridBase< T, CT >::Delta, OneDimGridBase< T, CT >::lower_bound, OneDimGridBase< T, CT >::num_points, OneDimGridBase< T, CT >::upper_bound, and OneDimGridBase< T, CT >::X.
Referenced by NumericalGrid< T, CT >::NumericalGrid().
|
inlineoverridevirtual |
evaluate the index of r
r | current position |
The grid index satisfies .
Implements OneDimGridBase< T, CT >.
Definition at line 319 of file OneDimGridBase.h.
References OneDimGridBase< T, CT >::num_points, OneDimGridBase< T, CT >::r(), and OneDimGridBase< T, CT >::X.
|
inlineoverridevirtual |
Implements OneDimGridBase< T, CT >.
Definition at line 295 of file OneDimGridBase.h.
|
inline |
Definition at line 313 of file OneDimGridBase.h.
References qmcplusplus::n, and OneDimGridBase< T, CT >::X.
Referenced by OneDimNumGridFunctor< T >::put().
|
inlineoverridevirtual |
Set the grid given the parameters.
ri | initial grid point |
rf | final grid point |
n | number of grid points |
Implements OneDimGridBase< T, CT >.
Definition at line 336 of file OneDimGridBase.h.
References OneDimGridBase< T, CT >::lower_bound, qmcplusplus::n, OneDimGridBase< T, CT >::num_points, and OneDimGridBase< T, CT >::upper_bound.