From c6e6c1a5c774c445f671ecdc4aebc6ea232a73e0 Mon Sep 17 00:00:00 2001 From: Luis Moreno Date: Mon, 25 Nov 2024 13:13:24 -0400 Subject: [PATCH] remove deprecated calls --- src/linalg/ndarray/matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linalg/ndarray/matrix.rs b/src/linalg/ndarray/matrix.rs index adc8d7e8..45c3b516 100644 --- a/src/linalg/ndarray/matrix.rs +++ b/src/linalg/ndarray/matrix.rs @@ -125,11 +125,11 @@ impl Array2 for ArrayBase, Ix fn from_iterator>(iter: I, nrows: usize, ncols: usize, axis: u8) -> Self { let a = Array::from_iter(iter.take(nrows * ncols)) - .into_shape((nrows, ncols)) + .to_shape((nrows, ncols)) .unwrap(); match axis { 0 => a, - _ => a.reversed_axes().into_shape((nrows, ncols)).unwrap(), + _ => a.reversed_axes().to_shape((nrows, ncols)).unwrap(), } }