pub fn dot(a: &[f64], b: &[f64]) -> f64
Dot product of two vectors.
let a = [1.0, 2.0, 3.0]; let b = [1.0, 2.0, 3.0];