CiFEr
Data Structures | Typedefs | Functions
vec_float.h File Reference

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)
 

Detailed Description

Vector float struct.

Similar to the vector struct, but for floating point numbers.

Typedef Documentation

◆ cfe_vec_float

typedef struct cfe_vec_float cfe_vec_float

Vector of arbitrary precision (GMP) floats.

Function Documentation

◆ cfe_vec_float_init()

void cfe_vec_float_init ( cfe_vec_float v,
size_t  size,
size_t  prec 
)

Initializes a vector_float.

Parameters
vA pointer to an uninitialized vector_float
sizeThe size of the vector_float
precPrecision

◆ cfe_vec_float_free()

void cfe_vec_float_free ( cfe_vec_float v)

Frees the memory occupied by the contents of the vector_float.

◆ cfe_vec_float_get()

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.