![]() |
QMCPACK
|
LogGrid is a function whose gridpoints increase exponentially with the index. More...
Public Member Functions | |
GridType | Type () override |
Returns the type of the grid (i.e. linear, optimal, etc) More... | |
int | ReverseMap (double r) override |
Returns the index of the nearest point below r. More... | |
LogGrid () | |
void | Init (double R0, double spacing, int numpoints) |
void | Write (IOSectionClass &outSection) override |
void | Read (IOSectionClass &inSection) override |
LogGrid (double R0, double spacing, int numpoints) | |
LogGrid (int numpoints, double z, double R0, double spacing) | |
![]() | |
double | operator() (int i) const |
The i'th point in the grid. More... | |
double * | data () |
Array< double, 1 > & | Points () |
virtual | ~Grid () |
Public Attributes | |
double | Z |
double | r0 |
double | Spacing |
![]() | |
double | Start |
First and last grid points. More... | |
double | End |
int | NumPoints |
Number of points in the grid. More... | |
Additional Inherited Members | |
![]() | |
Array< double, 1 > | grid |
Contains the grid points. More... | |
LogGrid is a function whose gridpoints increase exponentially with the index.
That is, it has the analytic form
It is appropriate for functions which change rapidly near the origin but vary smoothly further out.
|
inline |
|
inline |
Definition at line 558 of file Grid.h.
References Grid::End, Grid::grid, Grid::NumPoints, qmcplusplus::pow(), r0, Array< T, D, ALLOC >::resize(), Spacing, Grid::Start, and Z.
|
inline |
Definition at line 523 of file Grid.h.
References Grid::End, Grid::grid, Grid::NumPoints, qmcplusplus::pow(), r0, Array< T, D, ALLOC >::resize(), Spacing, Grid::Start, and Z.
Referenced by LogGrid(), and Read().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the index of the nearest point below r.
Implements Grid.
Definition at line 516 of file Grid.h.
References qmcplusplus::floor(), qmcplusplus::log(), r0, Spacing, and Z.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Grid.
Definition at line 538 of file Grid.h.
References Grid::grid, r0, Spacing, and IOSectionClass::WriteVar().
double r0 |
double Spacing |
double Z |
Definition at line 512 of file Grid.h.
Referenced by Init(), LogGrid(), and ReverseMap().