6 #include "xs3_math_types.h"
486 const int32_t lower_bound,
487 const int32_t upper_bound,
488 const int bound_exp);
917 const int32_t b_q30[],
918 const unsigned b_length);
970 const int32_t b_q30[],
971 const unsigned b_length,
void bfp_s32_min_elementwise(bfp_s32_t *a, const bfp_s32_t *b, const bfp_s32_t *c)
Get the element-wise minimum of two 32-bit BFP vectors.
Definition: bfp_s32.c:426
void bfp_s32_shl(bfp_s32_t *a, const bfp_s32_t *b, const left_shift_t b_shl)
Apply a left-shift to the mantissas of a 32-bit BFP vector.
Definition: bfp_s32.c:45
float_s32_t bfp_s32_mean(const bfp_s32_t *b)
Get the mean value of a 32-bit BFP vector.
Definition: bfp_s32.c:313
void bfp_s32_add(bfp_s32_t *a, const bfp_s32_t *b, const bfp_s32_t *c)
Add two 32-bit BFP vectors together.
Definition: bfp_s32.c:60
headroom_t bfp_s32_headroom(bfp_s32_t *b)
Get the headroom of a 32-bit BFP vector.
Definition: bfp_s32.c:15
unsigned bfp_s32_argmin(const bfp_s32_t *b)
Get the index of the minimum value of a 32-bit BFP vector.
Definition: bfp_s32.c:461
void bfp_s32_add_scalar(bfp_s32_t *a, const bfp_s32_t *b, const float_s32_t c)
Add a scalar to a 32-bit BFP vector.
Definition: bfp_s32.c:79
void bfp_s32_clip(bfp_s32_t *a, const bfp_s32_t *b, const int32_t lower_bound, const int32_t upper_bound, const int bound_exp)
Definition: bfp_s32.c:205
void bfp_s32_macc(bfp_s32_t *acc, const bfp_s32_t *b, const bfp_s32_t *c)
Multiply one 32-bit BFP vector by another element-wise and add the result to a third vector.
Definition: bfp_s32.c:492
void bfp_s32_to_s16(bfp_s16_t *a, const bfp_s32_t *b)
Convert a 32-bit BFP vector into a 16-bit BFP vector.
Definition: bfp_s32.c:472
float_s32_t bfp_s32_max(const bfp_s32_t *b)
Get the maximum value of a 32-bit BFP vector.
Definition: bfp_s32.c:374
void bfp_s32_inverse(bfp_s32_t *a, const bfp_s32_t *b)
Get the inverses of elements of a 32-bit BFP vector.
Definition: bfp_s32.c:282
void bfp_s32_scale(bfp_s32_t *a, const bfp_s32_t *b, const float_s32_t alpha)
Multiply a 32-bit BFP vector by a scalar.
Definition: bfp_s32.c:138
float_s64_t bfp_s32_sum(const bfp_s32_t *b)
Sum the elements of a 32-bit BFP vector.
Definition: bfp_s32.c:172
void bfp_s32_set(bfp_s32_t *a, const int32_t b, const exponent_t exp)
Set all elements of a 32-bit BFP vector to a specified value.
Definition: bfp_init.c:97
float_s32_t bfp_s32_rms(const bfp_s32_t *b)
Get the RMS value of elements of a 32-bit BFP vector.
Definition: bfp_s32.c:355
float_s32_t bfp_s32_min(const bfp_s32_t *b)
Get the minimum value of a 32-bit BFP vector.
Definition: bfp_s32.c:412
void bfp_s32_mul(bfp_s32_t *a, const bfp_s32_t *b, const bfp_s32_t *c)
Multiply one 32-bit BFP vector by another element-wise.
Definition: bfp_s32.c:120
void bfp_s32_rect(bfp_s32_t *a, const bfp_s32_t *b)
Rectify a 32-bit BFP vector.
Definition: bfp_s32.c:251
void bfp_s32_nmacc(bfp_s32_t *acc, const bfp_s32_t *b, const bfp_s32_t *c)
Multiply one 32-bit BFP vector by another element-wise and subtract the result from a third vector.
Definition: bfp_s32.c:513
void bfp_s32_convolve_same(bfp_s32_t *y, const bfp_s32_t *x, const int32_t b_q30[], const unsigned b_length, const pad_mode_e padding_mode)
Convolve a 32-bit BFP vector with a short convolution kernel ("same" mode).
Definition: bfp_s32.c:553
void bfp_s32_sqrt(bfp_s32_t *a, const bfp_s32_t *b)
Get the square roots of elements of a 32-bit BFP vector.
Definition: bfp_s32.c:265
float_s64_t bfp_s32_abs_sum(const bfp_s32_t *b)
Sum the absolute values of elements of a 32-bit BFP vector.
Definition: bfp_s32.c:299
float_s64_t bfp_s32_dot(const bfp_s32_t *b, const bfp_s32_t *c)
Compute the inner product of two 32-bit BFP vectors.
Definition: bfp_s32.c:186
void bfp_s32_abs(bfp_s32_t *a, const bfp_s32_t *b)
Get the absolute values of elements of a 32-bit BFP vector.
Definition: bfp_s32.c:158
void bfp_s32_sub(bfp_s32_t *a, const bfp_s32_t *b, const bfp_s32_t *c)
Subtract one 32-bit BFP vector from another.
Definition: bfp_s32.c:101
float_s64_t bfp_s32_energy(const bfp_s32_t *b)
Get the energy (sum of squared of elements) of a 32-bit BFP vector.
Definition: bfp_s32.c:340
unsigned bfp_s32_argmax(const bfp_s32_t *b)
Get the index of the maximum value of a 32-bit BFP vector.
Definition: bfp_s32.c:450
void bfp_s32_use_exponent(bfp_s32_t *a, const exponent_t exp)
Modify a 32-bit BFP vector to use a specified exponent.
Definition: bfp_s32.c:28
void bfp_s32_convolve_valid(bfp_s32_t *y, const bfp_s32_t *x, const int32_t b_q30[], const unsigned b_length)
Convolve a 32-bit BFP vector with a short convolution kernel ("valid" mode).
Definition: bfp_s32.c:535
void bfp_s32_max_elementwise(bfp_s32_t *a, const bfp_s32_t *b, const bfp_s32_t *c)
Get the element-wise maximum of two 32-bit BFP vectors.
Definition: bfp_s32.c:388
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
pad_mode_e
Supported padding modes for convolutions in "same" mode.
Definition: xs3_vect_s32.h:2149
[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