![]() |
kspaceFirstOrder3D-OMP 1.0
The C++ implementation of the k-wave toolbox for the time-domain simulation of acoustic wave fields in 3D
|
The class for real matrices.
#include <RealMatrix.h>
Public Member Functions | |
TRealMatrix (struct TDimensionSizes DimensionSizes) | |
Constructor. | |
virtual | ~TRealMatrix () |
Destructor. | |
virtual void | ReadDataFromHDF5File (THDF5_File &HDF5_File, const char *MatrixName) |
Read data from the HDF5 file. | |
virtual void | WriteDataToHDF5File (THDF5_File &HDF5_File, const char *MatrixName, const int CompressionLevel) |
Write data into the HDF5 file. | |
float & | operator[] (const size_t &index) |
operator [] | |
float & | GetElementFrom3D (const size_t X, const size_t Y, const size_t Z) |
Get element from 3D matrix. | |
Protected Member Functions | |
virtual void | InitDimensions (struct TDimensionSizes DimensionSizes) |
Init dimension. | |
TRealMatrix () | |
Default constructor is not allowed for public. | |
TRealMatrix (const TRealMatrix &src) | |
Copy constructor not allowed for public. | |
TRealMatrix & | operator= (const TRealMatrix &src) |
Operator = is not allowed for public. | |
Static Private Attributes | |
static const size_t | ChunkSize_1D_4MB = 1048576 |
Number of elements to get 4MB block of data. | |
static const size_t | ChunkSize_1D_1MB = 262144 |
Number of elements to get 1MB block of data. | |
static const size_t | ChunkSize_1D_256KB = 65536 |
Number of elements to get 256KB block of data. |
Definition at line 46 of file RealMatrix.h.
TRealMatrix::TRealMatrix | ( | struct TDimensionSizes | DimensionSizes | ) |
Constructor
[in] | DimensionSizes | - Dimension sizes |
Definition at line 58 of file RealMatrix.cpp.
float& TRealMatrix::GetElementFrom3D | ( | const size_t | X, |
const size_t | Y, | ||
const size_t | Z | ||
) | [inline] |
X | - X dimension |
Y | - Y dimension |
Z | - Z dimension |
Definition at line 77 of file RealMatrix.h.
void TRealMatrix::InitDimensions | ( | struct TDimensionSizes | DimensionSizes | ) | [protected, virtual] |
Set necessary dimensions and auxiliary variables
DimensionSizes | - 3D Dimension sizes |
Definition at line 146 of file RealMatrix.cpp.
float& TRealMatrix::operator[] | ( | const size_t & | index | ) | [inline] |
void TRealMatrix::ReadDataFromHDF5File | ( | THDF5_File & | HDF5_File, |
const char * | MatrixName | ||
) | [virtual] |
Read data data from HDF5 file
ios::failure | if error occurred |
[in] | HDF5_File | - HDF5 file |
[in] | MatrixName | - HDF5 dataset name |
Reimplemented from TBaseMatrix.
Definition at line 75 of file RealMatrix.cpp.
void TRealMatrix::WriteDataToHDF5File | ( | THDF5_File & | HDF5_File, |
const char * | MatrixName, | ||
const int | CompressionLevel | ||
) | [virtual] |
Write data to HDF5 file
ios::failure | if an error occurred |
[in] | HDF5_File | - HDF5 file |
[in] | MatrixName | - HDF5 Matrix name |
[in] | CompressionLevel | - Compression level |
Reimplemented from TBaseMatrix.
Definition at line 108 of file RealMatrix.cpp.