QMCPACK
Grid Class Referenceabstract

Parent class for all grids. More...

+ Inheritance diagram for Grid:
+ Collaboration diagram for Grid:

Public Member Functions

double operator() (int i) const
 The i'th point in the grid. More...
 
double * data ()
 
Array< double, 1 > & Points ()
 
virtual GridType Type ()=0
 Returns the type of the grid (i.e. linear, optimal, etc) More...
 
virtual int ReverseMap (double r)=0
 Returns the index of the nearest point below r. More...
 
virtual void Write (IOSectionClass &out)=0
 
virtual void Read (IOSectionClass &inSection)=0
 
virtual ~Grid ()
 

Public Attributes

double Start
 First and last grid points. More...
 
double End
 
int NumPoints
 Number of points in the grid. More...
 

Protected Attributes

Array< double, 1 > grid
 Contains the grid points. More...
 

Detailed Description

Parent class for all grids.

Definition at line 43 of file Grid.h.

Constructor & Destructor Documentation

◆ ~Grid()

virtual ~Grid ( )
inlinevirtual

Definition at line 68 of file Grid.h.

68 {}

Member Function Documentation

◆ data()

double* data ( )
inline

Definition at line 58 of file Grid.h.

References Array< T, D, ALLOC >::data(), and grid.

58 { return grid.data(); }
Array< double, 1 > grid
Contains the grid points.
Definition: Grid.h:47
Type_t * data()
Definition: OhmmsArray.h:87

◆ operator()()

double operator() ( int  i) const
inline

The i'th point in the grid.

Definition at line 57 of file Grid.h.

References grid.

57 { return (grid(i)); }
Array< double, 1 > grid
Contains the grid points.
Definition: Grid.h:47

◆ Points()

Array<double, 1>& Points ( )
inline

Definition at line 59 of file Grid.h.

References grid.

59 { return grid; }
Array< double, 1 > grid
Contains the grid points.
Definition: Grid.h:47

◆ Read()

virtual void Read ( IOSectionClass inSection)
pure virtual

◆ ReverseMap()

virtual int ReverseMap ( double  r)
pure virtual

◆ Type()

virtual GridType Type ( )
pure virtual

Returns the type of the grid (i.e. linear, optimal, etc)

Implemented in ClusterGrid, LogGrid, CenterGrid, OptimalGrid2, OptimalGrid, GeneralGrid, and LinearGrid.

◆ Write()

virtual void Write ( IOSectionClass out)
pure virtual

Member Data Documentation

◆ End

◆ grid

◆ NumPoints

◆ Start


The documentation for this class was generated from the following file: