| [ < ] | [ > ] | [ << ] | [ 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(C++, Python):voidCreate (intmx,intmy=1,intmz=1)
- C function: voidmgl_data_create (HMDTdat,intmx,intmy,intmz)
- 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(C++):voidSet (const float *A,intNX,intNY=1,intNZ=1)
- Method on mglData(C++):voidSet (const double *A,intNX,intNY=1,intNZ=1)
- C function: voidmgl_data_set_float (HMDTdat,const float *A,intNX,intNY,intNZ)
- C function: voidmgl_data_set_double (HMDTdat,const double *A,intNX,intNY,intNZ)
- Allocates memory and copies the data from the flat - float*or- double*array.
- Method on mglData(C++):voidSet (const float **A,intN1,intN2)
- Method on mglData(C++):voidSet (const double **A,intN1,intN2)
- C function: voidmgl_data_set_float2 (HMDTdat,const float **A,intN1,intN2)
- C function: voidmgl_data_set_double2 (HMDTdat,const double **A,intN1,intN2)
- Allocates memory and copies the data from the - float**or- double**array with dimensions N1, N2, i.e. from array defined as- float a[N1][N2];.
- Method on mglData(C++):voidSet (const float ***A,intN1,intN2)
- Method on mglData(C++):voidSet (const double ***A,intN1,intN2)
- C function: voidmgl_data_set_float3 (HMDTdat,const float ***A,intN1,intN2)
- C function: voidmgl_data_set_double3 (HMDTdat,const double ***A,intN1,intN2)
- Allocates memory and copies the data from the - float***or- double***array with dimensions N1, N2, N3, i.e. from array defined as- float a[N1][N2][N3];.
- Method on mglData(C++):voidSet (gsl_vector *v)
- C function: voidmgl_data_set_vector (HMDTdat,gsl_vector *v)
- Allocates memory and copies the data from the - gsl_vector *structure.
- Method on mglData(C++):voidSet (gsl_matrix *m)
- C function: voidmgl_data_set_matrix (HMDTdat,gsl_matrix *m)
- Allocates memory and copies the data from the - gsl_matrix *structure.
- Method on mglData(C++, Python):inline voidSet (const mglData &from)
- C function: voidmgl_data_set (HMDTdat,const HMDTfrom)
- Copies the data from mglData instance from. 
- Method on mglData(C++):voidSet (const std::vector<int> &d)
- Method on mglData(C++):voidSet (const std::vector<float> &d)
- Method on mglData(C++):voidSet (const std::vector<double> &d)
- Allocates memory and copies the data from the - std::vector<T>array.
- Method on mglData(C+, Python):voidSet (const char *str,intNX,intNY=1,intNZ=1)
- C function: voidmgl_data_set_values (const char *str,intNX,intNY,intNZ)
- Allocates memory and scanf the data from the string. 
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
