norm2_squared

Function norm2_squared 

Source
pub fn norm2_squared<T>(a: &[T]) -> T
where T: Float + Sum<T> + Mul<T, Output = T>,
Expand description

Calculate the 2-norm of a vector