pub fn cosine_distance<T: Cosine>(from: &[T], to: &[T]) -> f32
Cosine distance function between two vectors.