MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
Shorthand functions for allocation of matrices. More...
#include <stdlib.h>
Go to the source code of this file.
Functions | |
double *** | alloc_3Ddmatrix (int nx, int ny, int nz) |
allocate 3D double matrix More... | |
double *** | free_3Ddmatrix (double ***amat) |
free 3D double matrix More... | |
float *** | alloc_3Dfmatrix (int nx, int ny, int nz) |
allocate 3D float matrix More... | |
float *** | free_3Dfmatrix (float ***amat) |
free 3D float matrix More... | |
int *** | alloc_3Dmatrix (int nx, int ny, int nz) |
allocate 3D integer matrix More... | |
int *** | free_3Dmatrix (int ***amat) |
free 3D integer matrix More... | |
double ** | alloc_dmatrix (int nx, int ny) |
allocate 2D double matrix More... | |
double ** | free_dmatrix (double **amat) |
free 2D double matrix More... | |
float ** | alloc_fmatrix (int nx, int ny) |
allocate 2D float matrix More... | |
float ** | free_fmatrix (float **amat) |
free 2D float matrix More... | |
int ** | alloc_matrix (int nx, int ny) |
allocate 2D integer matrix More... | |
int ** | free_matrix (int **amat) |
free 2D integer matrix More... | |
Shorthand functions for allocation of matrices.
Definition in file allocation.cc.
double*** alloc_3Ddmatrix | ( | int | nx, |
int | ny, | ||
int | nz | ||
) |
allocate 3D double matrix
[in] | nx | number of elements in 1st direction |
[in] | ny | number of elements in 2nd direction |
[in] | nz | number of elements in 3rd direction |
Definition at line 9 of file allocation.cc.
References globals::nx, and globals::ny.
Referenced by makeNodeStruts().
float*** alloc_3Dfmatrix | ( | int | nx, |
int | ny, | ||
int | nz | ||
) |
allocate 3D float matrix
[in] | nx | number of elements in 1st direction |
[in] | ny | number of elements in 2nd direction |
[in] | nz | number of elements in 3rd direction |
Definition at line 46 of file allocation.cc.
References globals::nx, and globals::ny.
int*** alloc_3Dmatrix | ( | int | nx, |
int | ny, | ||
int | nz | ||
) |
allocate 3D integer matrix
[in] | nx | number of elements in 1st direction |
[in] | ny | number of elements in 2nd direction |
[in] | nz | number of elements in 3rd direction |
Definition at line 83 of file allocation.cc.
References globals::nx, and globals::ny.
Referenced by allocateFromVTK(), and main().
double** alloc_dmatrix | ( | int | nx, |
int | ny | ||
) |
allocate 2D double matrix
[in] | nx | number of elements in 1st direction |
[in] | ny | number of elements in 2nd direction |
Definition at line 120 of file allocation.cc.
References globals::nx, and globals::ny.
Referenced by main().
float** alloc_fmatrix | ( | int | nx, |
int | ny | ||
) |
allocate 2D float matrix
[in] | nx | number of elements in 1st direction |
[in] | ny | number of elements in 2nd direction |
Definition at line 152 of file allocation.cc.
References globals::nx, and globals::ny.
int** alloc_matrix | ( | int | nx, |
int | ny | ||
) |
allocate 2D integer matrix
[in] | nx | number of elements in 1st direction |
[in] | ny | number of elements in 2nd direction |
Definition at line 184 of file allocation.cc.
References globals::nx, and globals::ny.
Referenced by main().
double*** free_3Ddmatrix | ( | double *** | amat | ) |
free 3D double matrix
[in,out] | amat | matrix |
Definition at line 37 of file allocation.cc.
Referenced by makeNodeStruts().
float*** free_3Dfmatrix | ( | float *** | amat | ) |
int*** free_3Dmatrix | ( | int *** | amat | ) |
free 3D integer matrix
[in,out] | amat | matrix |
Definition at line 111 of file allocation.cc.
Referenced by main().
double** free_dmatrix | ( | double ** | amat | ) |
free 2D double matrix
[in,out] | amat | matrix |
Definition at line 144 of file allocation.cc.
Referenced by main().
float** free_fmatrix | ( | float ** | amat | ) |
int** free_matrix | ( | int ** | amat | ) |
free 2D integer matrix
[in,out] | amat | matrix |
Definition at line 208 of file allocation.cc.
Referenced by main().