| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.2 Create and delete
- Constructor on mglData:
mglData (intmx=1,intmy=1,intmz=1) Default constructor. Allocates the memory for data array and initializes it by zero.
- Method on mglData:
voidCreate (intmx,intmy=1,intmz=1) Creates or recreates the array with specified size and fills it by zero. This function does nothing if one of parameters mx, my, mz is zero or negative.
- Method on mglData:
voidSet (const float *A,intNX,intNY=1,intNZ=1) Allocates memory and copies the data from the flat
float*array.
- Method on mglData:
voidSet (const double *A,intNX,intNY=1,intNZ=1) Allocates memory and copies the data from the flat
double*array.
- Method on mglData:
voidSet (const float **A,intN1,intN2) Allocates memory and copies the data from the
float**array with dimensions N1, N2, i.e. from array defined asfloat a[N1][N2];.
- Method on mglData:
voidSet (const double **A,intN1,intN2) Allocates memory and copies the data from the
double**array with dimensions N1, N2, i.e. from array defined asdouble a[N1][N2];.
- Method on mglData:
voidSet (const float ***A,intN1,intN2) Allocates memory and copies the data from the
float***array with dimensions N1, N2, N3, i.e. from array defined asfloat a[N1][N2][N3];.
- Method on mglData:
voidSet (const double ***A,intN1,intN2) Allocates memory and copies the data from the
double***array with dimensions N1, N2, N3, i.e. from array defined asdouble a[N1][N2][N3];.
- Method on mglData:
voidSet (gsl_vector *v) Allocates memory and copies the data from the
gsl_vector *structure.
- Method on mglData:
voidSet (gsl_matrix *m) Allocates memory and copies the data from the
gsl_matrix *structure.
- Method on mglData:
voidSet (const char *str,intNX,intNY=1,intNZ=1) Allocates memory and scanf the data from the string.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
