Skip to main content

Module support

Module support 

Source
Expand description

Support functions (copy, fill, format conversions q7/q15/q31/f32, sort, barycenter, weighted sum).

Structs§

XorShift64
Simple deterministic zero-allocation 64-bit XorShift Pseudo-Random Number Generator.

Functions§

barycenter_f32
Compute barycenter of points weighted by given weights.
biquad_coeffs_f32_to_q15
Quantize f32 biquad SOS coeffs ([b0,b1,b2,a1,a2] per stage) to Q15.
biquad_coeffs_f32_to_q31
Quantize f32 biquad SOS coeffs to Q31 (coeff / 2^{post_shift} * 2^{31}).
copy_f32
copy_q7
copy_q15
copy_q31
f32_to_q7
f32_to_q15
f32_to_q31
fill_f32
fill_q7
fill_q15
fill_q31
fir_taps_f32_to_q15
Quantize FIR taps to Q15 with nearest-even-style rounding toward nearest integer.
gaussian_noise_f32
Fill destination slice with Gaussian (White Noise) samples of given mean and std_dev using the Box-Muller transform.
q7_to_f32
q7_to_q15
q7_to_q31
q15_to_f32
q15_to_q7
q15_to_q31
q31_to_f32
q31_to_q7
q31_to_q15
sort_f32
Insertion sort for f32 (ascending or descending order).
uniform_noise_f32
Fill destination slice with uniformly distributed random noise in [min_val, max_val].
weighted_sum_f32
Compute weighted sum of values.