36 #ifndef BASEINDEXMATRIXDATA_H
37 #define BASEINDEXMATRIXDATA_H
59 pTotalElementCount(0), pTotalAllocatedElementCount(0),
60 pDimensionSizes(), pDataRowSize(0), p2DDataSliceSize (0),
67 return pDimensionSizes;
73 return pTotalElementCount;
79 return pTotalAllocatedElementCount;
87 virtual void ZeroMatrix();
120 virtual void AllocateMemory();
123 virtual void FreeMemory() ;
Abstract base class, the common ancestor defining the common interface and allowing derived classes t...
virtual size_t GetTotalElementCount() const
Get total element count of the matrix.
virtual size_t * GetRawData()
Get raw data out of the class (for direct kernel access).
size_t pTotalAllocatedElementCount
Total number of allocated elements (the array size).
virtual ~TBaseIndexMatrix()
Destructor.
The header file containing the structure with 3D dimension sizes.
Abstract base class for index based matrices defining basic interface. Higher dimensional matrices st...
virtual size_t GetTotalAllocatedElementCount() const
Get total allocated element count (might differ from total element count used for the simulation beca...
size_t * pMatrixData
Raw matrix data.
size_t p2DDataSliceSize
Size of 2D slab (X,Y).
size_t pTotalElementCount
Total number of elements.
virtual const size_t * GetRawData() const
Get raw data out of the class (for direct kernel access).
TBaseIndexMatrix()
Default constructor.
The header file of the common ancestor of all matrix classes. A pure abstract class.
size_t pDataRowSize
Size of 1D row in X dimension.
Structure with 4D dimension sizes (3 in space and 1 in time).