Skip to main content

norm2_squared_diff

Function norm2_squared_diff 

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

Calculate the squared 2-norm of the difference of two vectors