diff --git a/fixed_wide_vectors/src/macros/matrix.rs b/fixed_wide_vectors/src/macros/matrix.rs index 6123736..0c1c371 100644 --- a/fixed_wide_vectors/src/macros/matrix.rs +++ b/fixed_wide_vectors/src/macros/matrix.rs @@ -38,8 +38,9 @@ macro_rules! impl_matrix { where T:core::ops::Mul+Copy, V:core::iter::Sum, + U:Clone, { - let mut array_of_iterators=rhs.array.map(|axis|axis.into_iter()); + let mut array_of_iterators=rhs.array.map(|axis|axis.into_iter().cycle()); Matrix{ array:self.array.map(|axis| core::array::from_fn(|_|