PanPhaseField SDK
|
A matrix-like data structure template which handles mesh grid of phase-field model, such as composition mesh, order parameter mesh and chemical potential mesh. There is a rich variety of built-in operations for vectorizing loop-based source code. More...
#include <tensors.h>
Public Member Functions | |
bool | empty () |
vector< type_int > | size () |
MatrixMesh () | |
MatrixMesh (const MatrixMesh &obj) | |
MatrixMesh (type_int dimx, type_int dimy, type_int dimz, type_int dimc1, type_int dimc2) | |
MatrixMesh (T *list, vector< type_int >dims) | |
~MatrixMesh () | |
void | clear () |
T & | operator() (unsigned int x, unsigned int y, unsigned int z, unsigned int c1, unsigned int c2) |
MatrixMesh & | operator= (const MatrixMesh &rhs) |
A matrix-like data structure template which handles mesh grid of phase-field model, such as composition mesh, order parameter mesh and chemical potential mesh. There is a rich variety of built-in operations for vectorizing loop-based source code.
|
inline |
Default constructor
|
inline |
Copy constructor
|
inline |
A Constructor using dimensions of mesh
[in] | dimx | the dimension along x-axis |
[in] | dimy | the dimension along y-axis |
[in] | dimz | the dimension along z-axis |
[in] | dimc1 | the 1st dimension of matrix at a mesh point |
[in] | dimc2 | the 2nd dimension of matrix at a mesh point |
|
inline |
A copy constructor using an array of dimensions
[in] | list | the serialized list to be extracted and copied |
[in] | dims | the dimension of the 3D mesh [x,y,z, and matrix dimensions] |
|
inline |
Deconstructor
|
inline |
Is the mesh empty
|
inline |
Get the size of the mesh
|
inline |
Release the memory of mesh
|
inline |
Get value by index
[in] | x | the 1st index of 3D mesh |
[in] | y | the 2nd index of 3D mesh |
[in] | z | the 3rd index of 3D mesh |
[in] | c1 | the 1st dimension index of matrix |
[in] | c2 | the 2nd dimension index of matrix |
|
inline |
Assignment operator. Assign values in mesh by another mesh