Skip to content

Commit

Permalink
Allow deprecated ndarray into_shape
Browse files Browse the repository at this point in the history
  • Loading branch information
mulimoen committed Sep 12, 2024
1 parent 628b185 commit abef94a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sprs/src/sparse/csmat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2123,9 +2123,11 @@ where
fn mul(self, rhs: &'b ArrayBase<DS2, Ix1>) -> Array<N, Ix1> {
let rows = self.rows();
let cols = rhs.shape()[0];
#[allow(deprecated)]
let rhs_reshape = rhs.view().into_shape((cols, 1)).unwrap();
let mut res = Array::zeros(rows);
{
#[allow(deprecated)]
let res_reshape = res.view_mut().into_shape((rows, 1)).unwrap();
match self.storage() {
CSR => {
Expand Down

0 comments on commit abef94a

Please sign in to comment.