CiFEr
|
Vector float struct. More...
Go to the source code of this file.
Data Structures | |
struct | cfe_vec_float |
Typedefs | |
typedef struct cfe_vec_float | cfe_vec_float |
Functions | |
void | cfe_vec_float_init (cfe_vec_float *v, size_t size, size_t prec) |
void | cfe_vec_float_free (cfe_vec_float *v) |
void | cfe_vec_float_get (mpf_t res, cfe_vec_float *v, size_t i) |
Vector float struct.
Similar to the vector struct, but for floating point numbers.
typedef struct cfe_vec_float cfe_vec_float |
Vector of arbitrary precision (GMP) floats.
void cfe_vec_float_init | ( | cfe_vec_float * | v, |
size_t | size, | ||
size_t | prec | ||
) |
Initializes a vector_float.
v | A pointer to an uninitialized vector_float |
size | The size of the vector_float |
prec | Precision |
void cfe_vec_float_free | ( | cfe_vec_float * | v | ) |
Frees the memory occupied by the contents of the vector_float.
void cfe_vec_float_get | ( | mpf_t | res, |
cfe_vec_float * | v, | ||
size_t | i | ||
) |
Sets res to the i-th element of the vector.