common_function::scalars::vector::distance::l2sq

Function l2sq

source
pub fn l2sq(lhs: &[f32], rhs: &[f32]) -> f32
Expand description

Calculates the squared L2 distance between two vectors.

Note: Must ensure that the length of the two vectors are the same.