![]() |
QMCPACK
|
The OptimalGrid class stores a grid which has linear spacing at the origin and exponential spacing further out. More...
Inheritance diagram for OptimalGrid2:
Collaboration diagram for OptimalGrid2: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... | |
| double | Geta () const |
| Returns a parameter. More... | |
| double | Getb () const |
| Returns b parameter. More... | |
| OptimalGrid2 () | |
| OptimalGrid2 (int numpoints, double rmax, double bval) | |
| This form of the constructor takes the number of points, the maximum radius and the value of b. More... | |
| void | Init (double start, double end, double ratio, int numpoints) |
| OptimalGrid2 (double start, double end, double ratio, int numpoints) | |
| This form of the constructor takes a, b, and the number of points. More... | |
| void | Write (IOSectionClass &outSection) override |
| void | Read (IOSectionClass &inSection) override |
Public Member Functions inherited from Grid | |
| double | operator() (int i) const |
| The i'th point in the grid. More... | |
| double * | data () |
| Array< double, 1 > & | Points () |
| virtual | ~Grid () |
Private Attributes | |
| double | a |
| double | b |
| double | c |
| double | Ratio |
Additional Inherited Members | |
Public Attributes inherited from Grid | |
| double | Start |
| First and last grid points. More... | |
| double | End |
| int | NumPoints |
| Number of points in the grid. More... | |
Protected Attributes inherited from Grid | |
| Array< double, 1 > | grid |
| Contains the grid points. More... | |
The OptimalGrid class stores a grid which has linear spacing at the origin and exponential spacing further out.
It has the analytic form
.
|
inline |
|
inline |
This form of the constructor takes the number of points, the maximum radius and the value of b.
Definition at line 384 of file Grid.h.
References a, b, c, Grid::End, qmcplusplus::exp(), Grid::grid, Grid::NumPoints, Array< T, D, ALLOC >::resize(), and Grid::Start.
|
inline |
This form of the constructor takes a, b, and the number of points.
Definition at line 417 of file Grid.h.
References Init().
|
inline |
|
inline |
|
inline |
Definition at line 398 of file Grid.h.
References a, b, c, Grid::End, Grid::grid, qmcplusplus::log(), Grid::NumPoints, Ratio, Array< T, D, ALLOC >::resize(), and Grid::Start.
Referenced by OptimalGrid2(), and Read().
|
inlineoverridevirtual |
Implements Grid.
Definition at line 429 of file Grid.h.
References Init(), and IOSectionClass::ReadVar().
|
inlineoverridevirtual |
Returns the index of the nearest point below r.
Implements Grid.
Definition at line 363 of file Grid.h.
References a, b, c, and qmcplusplus::floor().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Grid.
Definition at line 419 of file Grid.h.
References Grid::End, Grid::grid, Grid::NumPoints, Ratio, Grid::Start, and IOSectionClass::WriteVar().
|
private |
Definition at line 357 of file Grid.h.
Referenced by Geta(), Init(), OptimalGrid2(), and ReverseMap().
|
private |
Definition at line 357 of file Grid.h.
Referenced by Getb(), Init(), OptimalGrid2(), and ReverseMap().
|
private |
Definition at line 357 of file Grid.h.
Referenced by Init(), OptimalGrid2(), and ReverseMap().