Skip to main content

norm2

Function norm2 

Source
pub fn norm2(x: &[f32]) -> f64
Expand description

Compute the L2 norm of an f32 slice using f64 accumulation.

Returns sqrt(sum(x_i^2)) computed entirely in f64.