A region defined by start and end index and lower and upper bound for each dimension.
using rect_domain_type = blitz::RectDomain< N >using int_n = blitz::TinyVector< int, N >using vec = blitz::TinyVector< T, N >empty() const -> boolnear(const Grid & rhs, T eps) -> booltemplate <class ... Args> contains(const vec & x, const Args &... tail) const -> boolcontains(const vec & x) const -> boolwithin_bounds(T x, int dim) const -> boolclear() -> voidtemplate <class ... Tail> select(int head, Tail ... tail) const -> autotemplate <class ... Tail> operator()(const blitz::Range & head, const Tail &... tail) const -> Grid< T, N >operator()(const blitz::RectDomain< N > & domain) const -> Grid< T, N >index(T x, const int dim) const -> const Tindex(const vec & x) const -> const vecoperator!=(const Grid & rhs) const -> booloperator==(const Grid & rhs) const -> booloperator()(const int i, const int dim) const -> const Toperator()(const int_n & i, const vec & delta) const -> const vec
Point inside the region specified by index i and delta.
operator()(const int_n & i) const -> const vec
Point inside the region specified by index i.
delta() const -> vecThe size of the patch (interval) for all dimensions.
delta(int i) const -> const T
The size of the patch (interval) for dimension i.
num_elements() const -> size_tTotal number of grid points.
length(int i) const -> const T
The size of the region for dimension i.
size() const -> const vecThe size of the region.
num_patches() const -> const int_nThe number of patches (intervals) for all dimensions.
num_patches(int i) const -> int
The number of patches (intervals) for dimension i.
max(int i) -> T &max(int i) const -> Tmax() -> vec &ubound(int i) -> T &ubound(int i) const -> Tubound() -> vec &Upper bound of the region.
ubound() const -> const vec &Upper bound of the region.
min(int i) -> T &min(int i) const -> Tmin() -> vec &lbound(int i) -> T &lbound(int i) const -> Tlbound() -> vec &Lower bound of the region.
lbound() const -> const vec &Lower bound of the region.
domain() const -> rect_domain_typeshape(int i) -> int &shape(int i) const -> intextent(int i) const -> int
The number of points for dimension i.
shape() -> int_n &shape() const -> const int_nThe number of points for all dimensions.
template <class ... Tail> Grid(const Grid< T, 1 > & head, const Tail &... tail)explicitGrid(const int_n & shape)explicitGrid(const vec & ubound, const int_n & shape)Grid(const vec & lbound, const vec & ubound, const int_n & shape)template <class X> Grid(const Grid< X, N > & rhs)explicitoperator=(Grid &&) -> Grid &Grid(Grid &&)operator=(const Grid &) -> Grid &Grid(const Grid &)~Grid()Grid()template <class T, int N, class Function> generate(const Grid< T, N > & grid, Function func) -> blitz::Array< T, N >template <class T> generate(const Grid< T, 1 > & grid) -> blitz::Array< T, 1 >template <class T, int N, class Function> generate(const Grid< T, N > & grid, blitz::Array< T, N > & result, Function func) -> voidtemplate <class T, int N> clamp(const blitz::TinyVector< T, N > x, const Grid< T, N > & grid) -> blitz::TinyVector< T, N >