pub fn dot(a: &[f64], b: &[f64]) -> f64
Dot product of two equal-length vectors (extra elements of the longer one are ignored, which never happens for the matched-length inputs used internally).
a
b
Σ aᵢ·bᵢ.
Σ aᵢ·bᵢ