pub fn norm2(x: &[f32]) -> f64
Compute the L2 norm of an f32 slice using f64 accumulation.
f32
f64
Returns sqrt(sum(x_i^2)) computed entirely in f64.
sqrt(sum(x_i^2))