pub fn distance(a: &[f32], b: &[f32], metric: DistanceMetric) -> f32Expand description
Compute distance between two vectors using the specified metric.
Dispatches to SIMD kernels (AVX-512, AVX2+FMA, NEON) when the simd
feature is enabled; otherwise uses scalar implementations.