Functions | |
mirkl_error_t * | mirml_mh_m_get (mirkl_size_t m, mirkl_size_t n, mirml_mh_matrix_t **mat) |
Creates an m-x-n matrix by dynamic memory allocation. More... | |
mirkl_error_t * | mirml_mh_v_get (mirkl_size_t size, mirml_mh_vector_t **vec) |
Creates a vector. More... | |
mirkl_error_t * | mirml_mh_iv_get (mirkl_size_t size, mirml_mh_ivector_t **vec) |
Similar to mirml_mh_v_get creates a vector of integers. More... | |
mirkl_error_t * | mirml_mh_i64v_get (mirkl_size_t size, mirml_mh_i64vector_t **vec) |
Similar to mirml_mh_v_get creates a vector of 64-bit integers. More... | |
mirkl_error_t * | mirml_mh_px_get (int size, mirml_mh_permutation_t **perm) |
Creates a permutation of given size. More... | |
mirkl_error_t * | mirml_mh_iter_get (int lenb, int lenx, mirml_mh_iter_t **iter) |
Creates and initializes a new structure pointing to mirml_mh_iter_t. | |
Functions to free Meschach objects. | |
void | mirml_mh_m_free (mirml_mh_matrix_t *mat) |
void | mirml_mh_v_free (mirml_mh_vector_t *vec) |
void | mirml_mh_iv_free (mirml_mh_ivector_t *vec) |
void | mirml_mh_i64v_free (mirml_mh_i64vector_t *vec) |
void | mirml_mh_px_free (mirml_mh_permutation_t *px) |
void | mirml_mh_iter_free (mirml_mh_iter_t *ip) |
Macros that also check types and set pointers to NULL. | |
#define | MIRML_MH_MATRIX_FREE(mat) ( mirml_mh_m_free(mat), (mat)=(mirml_mh_matrix_t *)NULL ) |
#define | MIRML_MH_VECTOR_FREE(vec) ( mirml_mh_v_free(vec), (vec)=(mirml_mh_vector_t *)NULL ) |
#define | MIRML_MH_IVECTOR_FREE(vec) ( mirml_mh_iv_free(vec), (vec)=(mirml_mh_ivector_t *)NULL ) |
#define | MIRML_MH_I64VECTOR_FREE(vec) ( mirml_mh_i64v_free(vec),(vec)=(mirml_mh_i64vector_t *)NULL ) |
#define | MIRML_MH_PERMUTATION_FREE(px) ( mirml_mh_px_free(px), (px)=(mirml_mh_permutation_t *)NULL ) |
#define | MIRML_MH_SPMATRIX_FREE(mat) ( mirml_mh_sp_free(mat), (mat)=(mirml_mh_spmatrix_t *)NULL ) |
#define | MIRML_MH_ITER_FREE(it) ( mirml_mh_iter_free(it),(it)=(mirml_mh_iter_t *)NULL ) |
mirkl_error_t * mirml_mh_i64v_get | ( | mirkl_size_t | size, |
mirml_mh_i64vector_t ** | vec | ||
) |
Similar to mirml_mh_v_get creates a vector of 64-bit integers.
mirkl_error_t * mirml_mh_iv_get | ( | mirkl_size_t | size, |
mirml_mh_ivector_t ** | vec | ||
) |
Similar to mirml_mh_v_get creates a vector of integers.
mirkl_error_t * mirml_mh_m_get | ( | mirkl_size_t | m, |
mirkl_size_t | n, | ||
mirml_mh_matrix_t ** | mat | ||
) |
Creates an m-x-n matrix by dynamic memory allocation.
[in] | m | number of rows. |
[in] | n | number of columns. |
[out] | mat | Pointer to matrix structure to be created. |
mirkl_error_t * mirml_mh_px_get | ( | int | size, |
mirml_mh_permutation_t ** | perm | ||
) |
Creates a permutation of given size.
mirkl_error_t * mirml_mh_v_get | ( | mirkl_size_t | size, |
mirml_mh_vector_t ** | vec | ||
) |
Creates a vector.
[in] | size | Size of the vector. |
[out] | vec | Pointer to vector structure to be created. |