From 4d2aa0b2c8b9c1e878f6ee54cd2581b4a5f9b1a5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 5 Sep 2024 17:44:44 -0700 Subject: [PATCH] is this better? --- fixed_wide_vectors/src/macros/matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() )