This commit is contained in:
Quaternions 2024-09-05 17:56:04 -07:00
parent 2312ee27b7
commit 607706ee2a

View File

@ -38,8 +38,9 @@ macro_rules! impl_matrix {
where where
T:core::ops::Mul<U,Output=V>+Copy, T:core::ops::Mul<U,Output=V>+Copy,
V:core::iter::Sum, 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{ Matrix{
array:self.array.map(|axis| array:self.array.map(|axis|
core::array::from_fn(|_| core::array::from_fn(|_|