11 #include "util/zmorton.hpp" 20 template<
unsigned int N,
typename T>
150 inline size_t size(
unsigned int i)
const 168 template <
unsigned int,
typename>
friend class grid_zm;
grid_zm(const size_t(&sz)[N])
Construct a grid of a specified size.
bool operator==(const grid_zm< N, T > &g)
Check if the two grid_sm are the same.
grid_key_dx is the key to access any element in the grid
void setDimensions(const size_t(&dims)[N])
Reset the dimension of the grid.
class that store the information of the grid like number of point on each direction and define the in...
size_t sz[N]
size of the grid
bool operator!=(const grid_zm< N, T > &g)
Check if the two grid_sm are the same.
size_t size(unsigned int i) const
__device__ __host__ grid_zm< N, T > & operator=(const grid_zm< N, T > &g)
Copy the grid from another grid.
const size_t(& getSize() const)[N]
Return the size of the grid as an array.
grid_zm(const grid_zm< N, S > &g)
construct a grid from another grid
__device__ __host__ mem_id LinId(const grid_key_dx< N, ids_type > &gk) const
Linearization of the grid_key_dx.
void swap(grid_zm< N, T > &g)
swap the grid_sm informations
grid_zm(const size_t &sz)
Construct a grid of a specified size.