pub fn simd_dot(a: &[f64], b: &[f64]) -> f64Expand description
SIMD-accelerated dot product with runtime feature detection.
Uses AVX2 on x86_64 (with std feature) when available, falls back to
scalar otherwise.
Returns the dot product of a and b, processing up to the shorter
slice’s length.
§Examples
use irithyll_core::simd::simd_dot;
let a = [1.0, 2.0, 3.0];
let b = [4.0, 5.0, 6.0];
assert!((simd_dot(&a, &b) - 32.0).abs() < 1e-12);