diff --git a/fixed_wide_vectors/src/macros/matrix.rs b/fixed_wide_vectors/src/macros/matrix.rs index 73023db..6123736 100644 --- a/fixed_wide_vectors/src/macros/matrix.rs +++ b/fixed_wide_vectors/src/macros/matrix.rs @@ -44,11 +44,11 @@ macro_rules! impl_matrix { array:self.array.map(|axis| core::array::from_fn(|_| // axis dot product with transposed rhs array - axis.into_iter().zip( + axis.iter().zip( array_of_iterators.each_mut().map(|iter| iter.next().unwrap() ) - ).map(|(a,b)| + ).map(|(&a,b)| a*b ).sum() )