![]() |
QMCPACK
|
One-Dimensional linear-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... | |
Ugrid | einspline_grid () |
![]() | |
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 linear-grid.
The analytic form where
is the number of points and the index
runs from 0 to
.
Definition at line 134 of file OneDimGridBase.h.
|
inline |
Definition at line 166 of file OneDimGridBase.h.
Referenced by QMCFiniteSize::getSkSpline().
|
inlineoverridevirtual |
evaluate the index of r
r | current position |
The grid index satisfies .
Implements OneDimGridBase< T, CT >.
Definition at line 149 of file OneDimGridBase.h.
|
inlineoverridevirtual |
Implements OneDimGridBase< T, CT >.
Definition at line 144 of file OneDimGridBase.h.
Referenced by qmcplusplus::createSpline4RbyVs_temp(), qmcplusplus::createSpline4RbyVsDeriv_temp(), and qmcplusplus::TEST_CASE().
|
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 151 of file OneDimGridBase.h.
Referenced by CoulombPBCAB::add(), SkParserBase::compute_grid(), RadialJastrowBuilder::createJ1(), SkParserBase::get_grid(), CoulombPBCAA::initBreakup(), CoulombPBCAB::initBreakup(), BackflowBuilder::makeShortRange_twoBody(), QMCFiniteSize::spline_clamped(), and qmcplusplus::TEST_CASE().