| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
8.19 Data import (Pure C)
- 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.
- 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 array.
- 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**array with dimensions N1, N2, i.e. from array defined like asfloat a[N1][N2];.
- 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
double***array with dimensions N1, N2, N3, i.e. from array defined like asfloat a[N1][N2][N3];.
- C function:
voidmgl_data_set_vector (HMDTdat,gsl_vector *v) Allocates memory and copies the data from the
gsl_vector *structure.
- C function:
voidmgl_data_set_matrix (HMDTdat,gsl_matrix *m) Allocates memory and copies the data from the
gsl_matrix *structure.
- 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] | [ ? ] |
