32 #ifndef INDEX_MATRIX_H
33 #define INDEX_MATRIX_H
61 const size_t compressionLevel);
80 inline const size_t&
operator[](
const size_t& index)
const
size_t GetTotalNumberOfElementsInAllCuboids() const
Get the total number of elements to be sampled within all cuboids.
TDimensionSizes GetBottomRightCorner(const size_t &index) const
Get the bottom right corner of the index-th cuboid.
virtual void WriteDataToHDF5File(THDF5_File &file, TMatrixName &matrixName, const size_t compressionLevel)
Write data into the HDF5 file.
const std::string TMatrixName
Datatype for matrix names.
void RecomputeIndicesToMatlab()
Recompute indices C++ -> MATLAB.
TIndexMatrix()
Default constructor not allowed for public.
virtual ~TIndexMatrix()
Destructor.
const size_t & operator[](const size_t &index) const
Operator [], constant version.
virtual void ReadDataFromHDF5File(THDF5_File &file, TMatrixName &matrixName)
Read data from the HDF5 file.
TDimensionSizes GetTopLeftCorner(const size_t &index) const
Get the top left corner of the index-th cuboid.
struct TDimensionSizes dimensionSizes
Dimension sizes.
The header file containing the structure with 3D dimension sizes.
size_t * hostData
Raw CPU matrix data.
size_t & operator[](const size_t &index)
Operator [].
Abstract base class for index based matrices defining basic interface. Higher dimensional matrices st...
void RecomputeIndicesToCPP()
Recompute indices MATALAB->C++.
The class for 64b unsigned integers (indices). It is used for sensor_mask_index or sensor_corners_mas...
TIndexMatrix & operator=(const TIndexMatrix &src)
Operator = not allowed for public.
static const size_t CHUNK_SIZE_1D_4MB
Number of elements to get 4MB block of data.
The header file containing the base class for 64b-wide integers implemented as size_t datatype...
static const size_t CHUNK_SIZE_1D_1MB
Number of elements to get 1MB block of data.
Class wrapping the HDF5 routines.
Structure with 4D dimension sizes (3 in space and 1 in time).
static const size_t CHUNK_SIZE_1D_256KB
Number of elements to get 256KB block of data.