pub fn dot<A>(xs: &[A], ys: &[A]) -> Awhere A: Add<Output = A> + Mul<Output = A> + Zero + Copy,
Compute the dot product.
xs and ys should be the same length and there may be a panic if they are not.
xs
ys
With "use_nightly", this is special cased for f32, f64.
"use_nightly"
f32, f64