Skip to content

Commit

Permalink
chore: replace deprecated method of ndarray::Zip
Browse files Browse the repository at this point in the history
  • Loading branch information
tasshi-me committed Dec 29, 2022
1 parent b556725 commit 700fcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linalg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn solve<F: Float>(a: Array2<F>, b: Array1<F>) -> Result<Array1<F>, Error> {
let (mut a1, mut a2) = a.view_mut().split_at(Axis(0), pivot_index);
ndarray::Zip::from(a1.row_mut(i))
.and(a2.row_mut(0))
.apply(::std::mem::swap);
.for_each(::std::mem::swap);
b.swap(i, pivot_index);
}
for j in i + 1..a.nrows() {
Expand Down

0 comments on commit 700fcf5

Please # to comment.