Macros | |
#define | MIR_FVEC2FMC_ROWS 1 |
#define | MIR_FVEC2FMC_COLS 2 |
Functions | |
mirkl_error_t * | mir_fmc_instance_create (mirkl_object_t **obj, mirkl_size_t nRows, mirkl_size_t nCols, double **vals, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_fmc_instance_create_from_vector (mirkl_object_t **obj, mirkl_size_t nRows, mirkl_size_t nCols, double *vals, unsigned int cflag, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_fmc_set_data (mirkl_object_t *obj, mirkl_size_t nRows, mirkl_size_t nCols, double **vals) |
mirkl_error_t * | mir_fmc_set_data_from_vector (mirkl_object_t *obj, mirkl_size_t nRows, mirkl_size_t nCols, double *vals, unsigned int cflag) |
mirkl_error_t * | mir_fmc_set_data_all_same (mirkl_object_t *obj, mirkl_size_t nRows, mirkl_size_t nCols, double val) |
mirkl_error_t * | mir_fmc_get_data (mirkl_object_t *obj, mirkl_size_t *nRows, mirkl_size_t *nCols, double ***vals) |
mirkl_error_t * | mir_fmc_get_data_ptr (mirkl_object_t *obj, mirkl_size_t *rows_tot, mirkl_size_t *cols_tot, int *distributed, mirkl_size_t *row_offset, mirkl_size_t *col_offset, mirkl_size_t *rows_loc, mirkl_size_t *cols_loc, double ***vals) |
Variables | |
mirkl_object_t * | MirFMatrixClass |
Float Matrix class. | |
mirkl_error_t * mir_fmc_get_data_ptr | ( | mirkl_object_t * | obj, |
mirkl_size_t * | rows_tot, | ||
mirkl_size_t * | cols_tot, | ||
int * | distributed, | ||
mirkl_size_t * | row_offset, | ||
mirkl_size_t * | col_offset, | ||
mirkl_size_t * | rows_loc, | ||
mirkl_size_t * | cols_loc, | ||
double *** | vals | ||
) |
Getting pointers to the data of FMatrix instance for fast access.
obj | Object from which the data to be retrieved. |
vals | array of values on the output. |
mirkl_error_t * mir_fmc_instance_create | ( | mirkl_object_t ** | obj, |
mirkl_size_t | nRows, | ||
mirkl_size_t | nCols, | ||
double ** | vals, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of FMatrix object.
[out] | obj | Reference to the created object. |
nRows | Number of rows for initialization. | |
nCols | Number of columns for initialization. | |
vals | Array of values for initialization. Zero matrix is created if it is NULL. | |
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_fmc_instance_create_from_vector | ( | mirkl_object_t ** | obj, |
mirkl_size_t | nRows, | ||
mirkl_size_t | nCols, | ||
double * | vals, | ||
unsigned int | cflag, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of FMatrix object using 1D-array for initialization.
[out] | obj | Reference to the created object. |
nRows | Number of rows for initialization. | |
nCols | Number of columns for initialization. | |
vals | Array of values for initialization. Zero matrix is created if it is NULL. | |
cflag | Copying pattern, one of MIR_FVEC2FMC_ | |
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_fmc_set_data | ( | mirkl_object_t * | obj, |
mirkl_size_t | nRows, | ||
mirkl_size_t | nCols, | ||
double ** | vals | ||
) |
Setting data for FMatrix object.
obj | Reference to the existing object. |
nRows | Number of rows for initialization. |
nCols | Number of columns for initialization. |
vals | Array of values for initialization. |
mirkl_error_t * mir_fmc_set_data_from_vector | ( | mirkl_object_t * | obj, |
mirkl_size_t | nRows, | ||
mirkl_size_t | nCols, | ||
double * | vals, | ||
unsigned int | cflag | ||
) |
Setting data for FMatrix object from 1D-array.
obj | Reference to the existing object. |
nRows | Number of rows for initialization. |
nCols | Number of columns for initialization. |
vals | 1D-array of values for initialization. |
cflag | Copying pattern, one of MIR_FVEC2FMC_ |