pub fn dot(lhs: &[f32], rhs: &[f32]) -> f32
Calculates the standard dot product of the two sequences.
Terminates at the end of the shorter sequence.