We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9c3f9 commit 84f0c80Copy full SHA for 84f0c80
src/tri.rs
@@ -100,8 +100,6 @@ where
100
Zip::indexed(self.rows())
101
.and(res.rows_mut())
102
.for_each(|i, src, mut dst| {
103
- // This ncols must go inside the loop to avoid panic on 1D arrays.
104
- // Statistically-neglible difference in performance vs defining ncols at top.
105
let row_num = i.into_dimension().last_elem();
106
let upper = min(row_num as isize + k, ncols) + 1;
107
dst.slice_mut(s![..upper]).assign(&src.slice(s![..upper]));
0 commit comments