pub fn inner_product<T>(a: &[T], b: &[T]) -> T
where T: Float + Sum<T> + Mul<T, Output = T>,
Expand description

Calculate the inner product of two vectors