Function dot

Source
pub fn dot<A>(xs: &[A], ys: &[A]) -> A
where A: Add<Output = A> + Mul<Output = A> + Zero + Copy,
Expand description

Compute the dot product.

xs and ys should be the same length and there may be a panic if they are not.

With "use_nightly", this is special cased for f32, f64.