3.4.17. horton/grid/uniform.h – Uniform 3D grids

Functions

long index_wrap(long i, long high)
class

Public Functions

UniformGrid::UniformGrid(double *_origin, double *_grid_rvecs, long *_shape, long *_pbc)
Cell *UniformGrid::get_cell()
Cell *UniformGrid::get_grid_cell()
void UniformGrid::set_ranges_rcut(double *center, double rcut, long *ranges_begin, long *ranges_end)
double UniformGrid::dist_grid_point(double *center, long *i)
void UniformGrid::delta_grid_point(double *center, long *i)
double *UniformGrid::get_pointer(double *array, long *i)

Public Members

double UniformGrid::origin[3]
double UniformGrid::grid_rvecs[9]
long UniformGrid::shape[3]
long UniformGrid::pbc[3]
class

Public Functions

Range3Iterator::Range3Iterator(const long *ranges_begin, const long *ranges_end, const long *shape)
long Range3Iterator::get_npoint() const
void Range3Iterator::set_point(long ipoint, long *i, long *iwrap)

Private Members

const long *Range3Iterator::ranges_begin
const long *Range3Iterator::ranges_end
const long *Range3Iterator::shape
long Range3Iterator::loop_shape[3]
long Range3Iterator::npoint
class

Public Functions

Cube3Iterator::Cube3Iterator(const long *begin, const long *end)
long Cube3Iterator::get_npoint() const
void Cube3Iterator::set_point(long ipoint, long *j)

Private Members

const long *Cube3Iterator::begin
const long *Cube3Iterator::end
long Cube3Iterator::shape[3]
long Cube3Iterator::npoint