34 #ifndef DIMENSIONSIZES_H
35 #define DIMENSIONSIZES_H
85 : X(x), Y(y), Z(z), T(t)
95 if (Is3D())
return X * Y * Z;
96 else return X * Y * Z * T;
118 return ((X == other.
X) && (Y == other.
Y) && (Z == other.
Z) && (T == other.
T));
128 return ((X != other.
X) || (Y != other.
Y) || (Z != other.
Z) || (T != other.
T));
size_t Z
Z dimension size.
bool operator!=(const TDimensionSizes &other) const
Operator !=.
friend TDimensionSizes operator-(const TDimensionSizes &op1, const TDimensionSizes &op2)
Operator -.
size_t X
X dimension size.
bool Is4D() const
Is it a 3D object with time?
size_t GetElementCount() const
Get element count, in 3D only spatial domain, in 4D with time.
bool operator==(const TDimensionSizes &other) const
Operator ==.
size_t Y
Y dimension size.
size_t T
Number of time steps (for time series datasets).
TDimensionSizes()
Default constructor.
const int DATA_ALIGNMENT
memory alignment for SSE, SSE2, SSE3, SSE4 (16B)
TDimensionSizes(const size_t x, const size_t y, const size_t z, const size_t t=0)
Constructor.
Structure with 4D dimension sizes (3 in space and 1 in time).
bool Is3D() const
Is it a 3D object?