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