![]() |
QMCPACK
|
One-Dimensional logarithmic-grid starting at the origin (Used in Siesta). 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 |
the meaing of ri/rf are different from the convetions of other classes 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 | OneOverA |
T | OneOverB |
![]() | |
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 starting at the origin (Used in Siesta).
The analytic form where the number of points is
and the index
runs from 0 to
Definition at line 233 of file OneDimGridBase.h.
|
inlineoverridevirtual |
evaluate the index of r
r | current position |
The grid index satisfies .
Implements OneDimGridBase< T, CT >.
Definition at line 249 of file OneDimGridBase.h.
References qmcplusplus::log(), LogGridZero< T, CT >::OneOverA, LogGridZero< T, CT >::OneOverB, and OneDimGridBase< T, CT >::r().
|
inlineoverridevirtual |
Implements OneDimGridBase< T, CT >.
Definition at line 244 of file OneDimGridBase.h.
|
inlineoverridevirtual |
the meaing of ri/rf are different from the convetions of other classes
ri | ratio |
rf | norm |
n | number of grid, [0,n) |
Implements OneDimGridBase< T, CT >.
Definition at line 256 of file OneDimGridBase.h.
References OneDimGridBase< T, CT >::Delta, qmcplusplus::exp(), OneDimGridBase< T, CT >::GridTag, LOGZERO_1DGRID, OneDimGridBase< T, CT >::lower_bound, qmcplusplus::n, OneDimGridBase< T, CT >::num_points, LogGridZero< T, CT >::OneOverA, LogGridZero< T, CT >::OneOverB, OneDimGridBase< T, CT >::upper_bound, and OneDimGridBase< T, CT >::X.
T OneOverA |
Definition at line 241 of file OneDimGridBase.h.
Referenced by LogGridZero< T, CT >::locate(), and LogGridZero< T, CT >::set().
T OneOverB |
Definition at line 242 of file OneDimGridBase.h.
Referenced by LogGridZero< T, CT >::locate(), and LogGridZero< T, CT >::set().