Skip to content

Commit

Permalink
remove deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
morenol committed Nov 25, 2024
1 parent 5448ede commit 7020aa7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/linalg/ndarray/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@ impl<T: Debug + Display + Copy + Sized> Array2<T> for ArrayBase<OwnedRepr<T>, Ix

fn from_iterator<I: Iterator<Item = T>>(iter: I, nrows: usize, ncols: usize, axis: u8) -> Self {
let a = Array::from_iter(iter.take(nrows * ncols))
.into_shape((nrows, ncols))
.into_shape_with_order((nrows, ncols))
.unwrap();
match axis {
0 => a,
_ => a.reversed_axes().into_shape((nrows, ncols)).unwrap(),
_ => a
.reversed_axes()
.into_shape_with_order((nrows, ncols))
.unwrap(),
}
}

Expand Down

0 comments on commit 7020aa7

Please sign in to comment.