Skip to content

Commit 566909e

Browse files
committed
Tydied-up code a bit
1 parent 3d9933e commit 566909e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/linalg/impl_linalg.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,7 @@ where
851851
unsafe {
852852
let mut res: ArrayD<T> = ArrayBase::uninitialized(res_dim);
853853
let res_chunks = res.exact_chunks_mut(b.shape());
854-
//azip!(mut r_c (res_chunks), a in {f(r_c, a, b)});
855-
Zip::from(res_chunks).and(a).apply(|r_c, &x| f(r_c, x, b));
854+
Zip::from(res_chunks).and(a).apply(|res_chunk, &a_elem| f(res_chunk, a_elem, b));
856855
res
857856
}
858857
}
@@ -886,7 +885,7 @@ where
886885
I: Dimension,
887886
F: Fn(ArrayViewMut<T, I>, T, &ArrayBase<Sb, I>) -> (),
888887
{
889-
let mut res_dim = a.raw_dim().clone();
888+
let mut res_dim = a.raw_dim();
890889
let mut res_dim_view = res_dim.as_array_view_mut();
891890
res_dim_view *= &b.raw_dim().as_array_view();
892891

0 commit comments

Comments
 (0)