![]() |
kspaceFirstOrder3D-CUDA
1.1
The CUDA/C++ implementation of the k-wave toolbox for the time-domain simulation of acoustic wave fields in 3D
|
Structure with 4D dimension sizes (3 in space and 1 in time). More...
#include <DimensionSizes.h>
Public Member Functions | |
TDimensionSizes () | |
Default constructor. | |
TDimensionSizes (size_t x, size_t y, size_t z, size_t t=0) | |
Constructor. More... | |
size_t | GetElementCount () const |
Get element count, in 3D only spatial domain, in 4D with time. More... | |
bool | Is3D () const |
Does the object include spatial dimensions only? | |
bool | Is4D () const |
Does the object include spatial and temporal dimensions? | |
bool | operator== (const TDimensionSizes &other) const |
Operator ==. More... | |
bool | operator!= (const TDimensionSizes &other) const |
Operator !=. More... | |
Public Attributes | |
size_t | nx |
number of elements in the x direction | |
size_t | ny |
number of elements in the y direction | |
size_t | nz |
number of elements in the z direction | |
size_t | nt |
Number of time steps (for time series datasets). | |
Friends | |
TDimensionSizes | operator- (const TDimensionSizes &op1, const TDimensionSizes &op2) |
Structure with 4D dimension sizes (3 in space and 1 in time). The structure can be used for 3D (the time is then set to 1).
The structure contains only POD, so no C++ stuff is necessary.
Definition at line 66 of file DimensionSizes.h.
|
inline |
Constructor.
[in] | x,y,z,t | - Three spatial dimensions and time. |
Definition at line 76 of file DimensionSizes.h.
|
inline |
Get element count, in 3D only spatial domain, in 4D with time.
Definition at line 85 of file DimensionSizes.h.
|
inline |
[in] | other | - the second operand to compare with |
Definition at line 117 of file DimensionSizes.h.
|
inline |
[in] | other | - The second operand to compare with |
Definition at line 107 of file DimensionSizes.h.
|
friend |
Operator - Get the size of the cube defined by two corners
[in] | op1 | - Usually bottom right corner |
[in] | op2 | - Usually top left corner |
Definition at line 129 of file DimensionSizes.h.