Functions | |
mirkl_error_t * | mir_fvc_instance_create (mirkl_object_t **obj, mirkl_size_t nVals, double *vals, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_fvc_instance_create_range (mirkl_object_t **obj, mirkl_size_t nVals, double vmin, double vstep, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_fvc_set_data (mirkl_object_t *obj, mirkl_size_t nVals, double *vals) |
mirkl_error_t * | mir_fvc_set_data_range (mirkl_object_t *obj, mirkl_size_t nVals, double vmin, double vstep) |
mirkl_error_t * | mir_fvc_get_data (mirkl_object_t *obj, mirkl_size_t *nVals, double **vals) |
mirkl_error_t * | mir_fvc_get_data_ptr (mirkl_object_t *obj, mirkl_size_t *nVals, double **vals) |
mirkl_error_t * | mir_fvc_resize (mirkl_object_t *obj, mirkl_size_t newsize) |
Variables | |
mirkl_object_t * | MirFVectorClass |
Float Vector class. | |
mirkl_error_t * mir_fvc_get_data | ( | mirkl_object_t * | obj, |
mirkl_size_t * | nVals, | ||
double ** | vals | ||
) |
Getting data from fvector.
obj | Object from which the data to be retrieved. |
nVals | Number of elements in vector on the output. |
vals | array of values on the output. Warning: this buffer must be freed by user! |
mirkl_error_t * mir_fvc_get_data_ptr | ( | mirkl_object_t * | obj, |
mirkl_size_t * | nVals, | ||
double ** | vals | ||
) |
Getting pointers to the data of fvector for fast access.
obj | Object from which the data to be retrieved. |
nVals | Number of elements in vector on the output. |
vals | array of values on the output. |
mirkl_error_t * mir_fvc_instance_create | ( | mirkl_object_t ** | obj, |
mirkl_size_t | nVals, | ||
double * | vals, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of fvector.
[out] | obj | Reference to the created object. |
nVals | Number of values for initialization. | |
vals | Array of values for initialization. Can be freed after this function. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_fvc_instance_create_range | ( | mirkl_object_t ** | obj, |
mirkl_size_t | nVals, | ||
double | vmin, | ||
double | vstep, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of ranged fvector.
[out] | obj | Reference to the created object. |
nVals | Number of values for initialization. | |
vmin | First (minimal) value in the vector. | |
vstep | Size of step for generation of next values in the vector. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_fvc_resize | ( | mirkl_object_t * | obj, |
mirkl_size_t | newsize | ||
) |
Resizes fvector.
newsize | New size of the fvector. |
mirkl_error_t * mir_fvc_set_data | ( | mirkl_object_t * | obj, |
mirkl_size_t | nVals, | ||
double * | vals | ||
) |
Set values of fvector.
nVals | Number of values. |
vals | Array of values. Can be freed after this function. |