Skip to main content

simd_norm_squared

Function simd_norm_squared 

Source
pub fn simd_norm_squared<T>(values: &[T]) -> T
where T: Copy + Add<Output = T> + Mul<Output = T> + Zero,
Expand description

Compute squared L2 norm of a vector using SIMD.