pub fn unified_distance(a: &[f32], b: &[f32], cfg: &SimdDistanceConfig) -> f32Expand description
Unified distance: one codepath for cosine / L2 / IP with unrolled loops.
Branch-free accumulation; metric chosen once at the end. Suitable for hot loops without depending on ruvector-core PR #352.