33 #ifndef DIMENSION_SIZES_H
34 #define DIMENSION_SIZES_H
109 return ((
nx == other.
nx) && (
ny == other.
ny) && (
nz == other.
nz) && (
nt == other.
nt));
119 return ((
nx != other.
nx) || (
ny != other.
ny) || (
nz != other.
nz) || (
nt != other.
nt));
140 op1.
nz - op2.
nz + 1, op1.
nt - op2.
nt + 1);
size_t nx
number of elements in the x direction
bool operator!=(const TDimensionSizes &other) const
Operator !=.
size_t nt
Number of time steps (for time series datasets).
friend TDimensionSizes operator-(const TDimensionSizes &op1, const TDimensionSizes &op2)
TDimensionSizes(size_t x, size_t y, size_t z, size_t t=0)
Constructor.
bool Is4D() const
Does the object include spatial and temporal dimensions?
size_t GetElementCount() const
Get element count, in 3D only spatial domain, in 4D with time.
size_t ny
number of elements in the y direction
bool operator==(const TDimensionSizes &other) const
Operator ==.
TDimensionSizes()
Default constructor.
const int DATA_ALIGNMENT
memory alignment for SSE, SSE2, SSE3, SSE4 (16B)
size_t nz
number of elements in the z direction
Structure with 4D dimension sizes (3 in space and 1 in time).
bool Is3D() const
Does the object include spatial dimensions only?