dot_product_simd

Function dot_product_simd 

Source
pub fn dot_product_simd(a: &[f32], b: &[f32]) -> f32
Expand description

SIMD-optimized dot product calculation

Automatically uses the best available SIMD implementation:

  • x86_64: AVX-512 → FMA+AVX2 → AVX2 → auto-vectorization
  • aarch64: NEON (always available)
  • other: auto-vectorization