vector_euclidean

Function vector_euclidean 

Source
pub fn vector_euclidean<T: Vectorized>(a: T, b: T) -> T::Output
Expand description

SIMD-capable calculation of the euclidean distance between two slices of equal length

let distance = vector_euclidean(&[0.1, 0.2, 0.3, 0.4f32] as &[f32], &[0.4, 0.3, 0.2, 0.1f32]);

ยงPanics

Will panic if the lengths of the slices are not equal