|
XCORE SDK
XCORE Software Development Kit
|
#include <xs3_math_types.h>
Public Attributes | |
| int16_t * | real |
| int16_t * | imag |
| exponent_t | exp |
| headroom_t | hr |
| unsigned | length |
| bfp_flags_e | flags |
A block floating-point vector of complex 16-bit elements.
Initialized with the bfp_complex_s16_init() function.
The logical quantity represented by each element of this vector is: data[k].re * 2^(exp) + i * data[k].im * 2^(exp) where the multiplication and exponentiation are using real (non-modular) arithmetic, and i is sqrt(-1)
The BFP API keeps the hr field up-to-date with the current headroom of data[] so as to minimize precision loss as elements become small. [bfp_complex_s16_t]
| exponent_t bfp_complex_s16_t::exp |
Exponent associated with the vector.
| bfp_flags_e bfp_complex_s16_t::flags |
BFP vector flags. Users should not normally modify these manually.
| headroom_t bfp_complex_s16_t::hr |
Current headroom in the data[]
| int16_t* bfp_complex_s16_t::imag |
Pointer to the underlying element buffer.
| unsigned bfp_complex_s16_t::length |
Current size of data[], expressed in elements
| int16_t* bfp_complex_s16_t::real |
Pointer to the underlying element buffer.