6 #include "xs3_math_types.h"
487 const int16_t lower_bound,
488 const int16_t upper_bound,
489 const int bound_exp);
float_s32_t bfp_s16_sum(const bfp_s16_t *b)
Sum the elements of a 16-bit BFP vector.
Definition: bfp_s16.c:181
void bfp_s16_macc(bfp_s16_t *acc, const bfp_s16_t *b, const bfp_s16_t *c)
Multiply one 16-bit BFP vector by another element-wise and add the result to a third vector.
Definition: bfp_s16.c:492
void bfp_s16_max_elementwise(bfp_s16_t *a, const bfp_s16_t *b, const bfp_s16_t *c)
Get the element-wise maximum of two 16-bit BFP vectors.
Definition: bfp_s16.c:392
float_s64_t bfp_s16_dot(const bfp_s16_t *b, const bfp_s16_t *c)
Compute the inner product of two 16-bit BFP vectors.
Definition: bfp_s16.c:195
void bfp_s16_sub(bfp_s16_t *a, const bfp_s16_t *b, const bfp_s16_t *c)
Subtract one 16-bit BFP vector from another.
Definition: bfp_s16.c:105
unsigned bfp_s16_argmin(const bfp_s16_t *b)
Get the index of the minimum value of a 16-bit BFP vector.
Definition: bfp_s16.c:463
void bfp_s16_mul(bfp_s16_t *a, const bfp_s16_t *b, const bfp_s16_t *c)
Multiply one 16-bit BFP vector by another element-wise.
Definition: bfp_s16.c:124
float bfp_s16_min(const bfp_s16_t *b)
Get the minimum value of a 16-bit BFP vector.
Definition: bfp_s16.c:416
void bfp_s16_add(bfp_s16_t *a, const bfp_s16_t *b, const bfp_s16_t *c)
Add two 16-bit BFP vectors together.
Definition: bfp_s16.c:60
float_s64_t bfp_s16_energy(const bfp_s16_t *b)
Get the energy (sum of squared of elements) of a 16-bit BFP vector.
Definition: bfp_s16.c:345
void bfp_s16_inverse(bfp_s16_t *a, const bfp_s16_t *b)
Get the inverses of elements of a 16-bit BFP vector.
Definition: bfp_s16.c:288
void bfp_s16_clip(bfp_s16_t *a, const bfp_s16_t *b, const int16_t lower_bound, const int16_t upper_bound, const int bound_exp)
Definition: bfp_s16.c:211
float bfp_s16_mean(const bfp_s16_t *b)
Get the mean value of a 16-bit BFP vector.
Definition: bfp_s16.c:321
void bfp_s16_sqrt(bfp_s16_t *a, const bfp_s16_t *b)
Get the square roots of elements of a 16-bit BFP vector.
Definition: bfp_s16.c:271
void bfp_s16_use_exponent(bfp_s16_t *a, const exponent_t exp)
Modify a 16-bit BFP vector to use a specified exponent.
Definition: bfp_s16.c:28
void bfp_s16_add_scalar(bfp_s16_t *a, const bfp_s16_t *b, const float c)
Add a scalar to a 16-bit BFP vector.
Definition: bfp_s16.c:79
void bfp_s16_to_s32(bfp_s32_t *a, const bfp_s16_t *b)
Convert a 16-bit BFP vector into a 32-bit BFP vector.
Definition: bfp_s16.c:474
void bfp_s16_min_elementwise(bfp_s16_t *a, const bfp_s16_t *b, const bfp_s16_t *c)
Get the element-wise minimum of two 16-bit BFP vectors.
Definition: bfp_s16.c:428
float_s32_t bfp_s16_abs_sum(const bfp_s16_t *b)
Sum the absolute values of elements of a 16-bit BFP vector.
Definition: bfp_s16.c:307
headroom_t bfp_s16_headroom(bfp_s16_t *b)
Get the headroom of a 16-bit BFP vector.
Definition: bfp_s16.c:15
void bfp_s16_scale(bfp_s16_t *a, const bfp_s16_t *b, const float alpha)
Multiply a 16-bit BFP vector by a scalar.
Definition: bfp_s16.c:144
void bfp_s16_set(bfp_s16_t *a, const int16_t b, const exponent_t exp)
Set all elements of a 16-bit BFP vector to a specified value.
Definition: bfp_init.c:85
void bfp_s16_shl(bfp_s16_t *a, const bfp_s16_t *b, const left_shift_t b_shl)
Apply a left-shift to the mantissas of a 16-bit BFP vector.
Definition: bfp_s16.c:45
void bfp_s16_nmacc(bfp_s16_t *acc, const bfp_s16_t *b, const bfp_s16_t *c)
Multiply one 16-bit BFP vector by another element-wise and subtract the result from a third vector.
Definition: bfp_s16.c:511
unsigned bfp_s16_argmax(const bfp_s16_t *b)
Get the index of the maximum value of a 16-bit BFP vector.
Definition: bfp_s16.c:452
float_s32_t bfp_s16_rms(const bfp_s16_t *b)
Get the RMS value of elements of a 16-bit BFP vector.
Definition: bfp_s16.c:359
void bfp_s16_rect(bfp_s16_t *a, const bfp_s16_t *b)
Rectify a 16-bit BFP vector.
Definition: bfp_s16.c:257
float bfp_s16_max(const bfp_s16_t *b)
Get the maximum value of a 16-bit BFP vector.
Definition: bfp_s16.c:380
void bfp_s16_abs(bfp_s16_t *a, const bfp_s16_t *b)
Get the absolute values of elements of a 16-bit BFP vector.
Definition: bfp_s16.c:167
int exponent_t
An exponent.
Definition: xs3_math_types.h:76
int left_shift_t
A leftwards arithmetic bit-shift.
Definition: xs3_math_types.h:110
unsigned headroom_t
Headroom of some integer or integer array.
Definition: xs3_math_types.h:86
[bfp_s32_t]
Definition: xs3_math_types.h:309
A block floating-point vector of 32-bit elements.
Definition: xs3_math_types.h:276
A floating-point scalar with a 32-bit mantissa.
Definition: xs3_math_types.h:167
A floating-point scalar with a 64-bit mantissa.
Definition: xs3_math_types.h:190