We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5fcd1e5 + 2b21048 commit d1f8ce0Copy full SHA for d1f8ce0
src/arith/mod.rs
@@ -450,8 +450,9 @@ macro_rules! arith_assign_func {
450
#[allow(unused_variables)]
451
fn $fn_name(&mut self, rhs: Array) {
452
let mut idxrs = Indexer::new();
453
- idxrs.set_index(&Seq::<f32>::default(), 0, Some(false));
454
- idxrs.set_index(&Seq::<f32>::default(), 1, Some(false));
+ for n in 0..self.numdims() {
+ idxrs.set_index(&Seq::<f32>::default(), n, Some(false));
455
+ }
456
let tmp = assign_gen(self as &Array, &idxrs,
457
& $func(self as &Array, &rhs, false));
458
mem::replace(self, tmp);
0 commit comments