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.
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
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.