![]() |
QMCPACK
|
One-Dimensional logarithmic-grid. More...
Public Member Functions | |
std::unique_ptr< OneDimGridBase< T, CT > > | makeClone () const override |
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 |
Public Attributes | |
T | OneOverLogDelta |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
using | value_type = T |
using | Array_t = CT |
One-Dimensional logarithmic-grid.
The analytic form where
is the number of points and the index
runs from 0 to
Definition at line 187 of file OneDimGridBase.h.
|
inlineoverridevirtual |
evaluate the index of r
r | current position |
The grid index satisfies .
Implements OneDimGridBase< T, CT >.
Definition at line 200 of file OneDimGridBase.h.
References qmcplusplus::log(), LogGrid< T, CT >::OneOverLogDelta, OneDimGridBase< T, CT >::r(), and OneDimGridBase< T, CT >::X.
|
inlineoverridevirtual |
Implements OneDimGridBase< T, CT >.
Definition at line 198 of file OneDimGridBase.h.
|
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 202 of file OneDimGridBase.h.
References OneDimGridBase< T, CT >::Delta, qmcplusplus::exp(), OneDimGridBase< T, CT >::GridTag, qmcplusplus::log(), LOG_1DGRID, OneDimGridBase< T, CT >::lower_bound, qmcplusplus::n, OneDimGridBase< T, CT >::num_points, LogGrid< T, CT >::OneOverLogDelta, OneDimGridBase< T, CT >::upper_bound, and OneDimGridBase< T, CT >::X.
T OneOverLogDelta |
Definition at line 196 of file OneDimGridBase.h.
Referenced by LogGrid< T, CT >::locate(), and LogGrid< T, CT >::set().