p3_mds::util

Function dot_product

Source
pub fn dot_product<T, const N: usize>(u: [T; N], v: [T; N]) -> T
where T: Copy + AddAssign + Mul<Output = T>,
Expand description

This will throw an error if N = 0 but it’s hard to imagine this case coming up.