Skip to content

Commit 443c96f

Browse files
committed
fix: sub and mul
1 parent 45ea8f4 commit 443c96f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/matrix/ge/operators/mul.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ where
1212
rhs.elems
1313
.par_iter_mut()
1414
.map(|r| {
15-
*r += lhs;
15+
*r *= lhs;
1616
})
1717
.collect::<Vec<_>>();
1818

@@ -32,7 +32,7 @@ where
3232
.par_iter_mut()
3333
.zip(rhs.elems.par_iter())
3434
.map(|(l, &r)| {
35-
*l += r;
35+
*l *= r;
3636
})
3737
.collect::<Vec<_>>();
3838

src/matrix/ge/operators/sub.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ where
1212
rhs.elems
1313
.par_iter_mut()
1414
.map(|r| {
15-
*r += lhs;
15+
*r -= lhs;
1616
})
1717
.collect::<Vec<_>>();
1818

@@ -32,7 +32,7 @@ where
3232
.par_iter_mut()
3333
.zip(rhs.elems.par_iter())
3434
.map(|(l, &r)| {
35-
*l += r;
35+
*l -= r;
3636
})
3737
.collect::<Vec<_>>();
3838

0 commit comments

Comments
 (0)