is this better?

This commit is contained in:
Quaternions 2024-09-05 17:44:44 -07:00
parent 34450d6a13
commit 4d2aa0b2c8

View File

@ -44,11 +44,11 @@ macro_rules! impl_matrix {
array:self.array.map(|axis| array:self.array.map(|axis|
core::array::from_fn(|_| core::array::from_fn(|_|
// axis dot product with transposed rhs array // axis dot product with transposed rhs array
axis.into_iter().zip( axis.iter().zip(
array_of_iterators.each_mut().map(|iter| array_of_iterators.each_mut().map(|iter|
iter.next().unwrap() iter.next().unwrap()
) )
).map(|(a,b)| ).map(|(&a,b)|
a*b a*b
).sum() ).sum()
) )