Skip to content

Commit

Permalink
Upgrade ndarray dependency to 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuyichenYanwushang committed Oct 16, 2024
1 parent 3e13736 commit b17abc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ndarray-linalg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ rand = "0.8.3"
thiserror = "1.0.24"

[dependencies.ndarray]
version = "0.15.2"
version = "0.16.1"
features = ["blas", "approx", "std"]
default-features = false

Expand All @@ -50,7 +50,7 @@ default-features = false
paste = "1.0.5"
criterion = "0.3.4"
# Keep the same version as ndarray's dependency!
approx = { version = "0.4.0", features = ["num-complex"] }
approx = { version = "0.5.0", features = ["num-complex"] }
rand_pcg = "0.3.1"

[[bench]]
Expand Down
4 changes: 2 additions & 2 deletions ndarray-linalg/tests/det.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn det_zero_nonsquare() {
assert!(a.sln_det_into().is_err());
};
}
for &shape in &[(1, 2).into_shape(), (1, 2).f()] {
for &shape in &[(1, 2).into_shape_with_order(), (1, 2).f()] {
det_zero_nonsquare!(f64, shape);
det_zero_nonsquare!(f32, shape);
det_zero_nonsquare!(c64, shape);
Expand Down Expand Up @@ -186,7 +186,7 @@ fn det_nonsquare() {
};
}
for &dims in &[(1, 0), (1, 2), (2, 1), (2, 3)] {
for &shape in &[dims.into_shape(), dims.f()] {
for &shape in &[dims.into_shape_with_order(), dims.f()] {
det_nonsquare!(f64, shape);
det_nonsquare!(f32, shape);
det_nonsquare!(c64, shape);
Expand Down
4 changes: 2 additions & 2 deletions ndarray-linalg/tests/deth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn deth_zero_nonsquare() {
assert!(a.sln_deth_into().is_err());
};
}
for &shape in &[(1, 2).into_shape(), (1, 2).f()] {
for &shape in &[(1, 2).into_shape_with_order(), (1, 2).f()] {
deth_zero_nonsquare!(f64, shape);
deth_zero_nonsquare!(f32, shape);
deth_zero_nonsquare!(c64, shape);
Expand Down Expand Up @@ -138,7 +138,7 @@ fn deth_nonsquare() {
};
}
for &dims in &[(1, 0), (1, 2), (2, 1), (2, 3)] {
for &shape in &[dims.into_shape(), dims.f()] {
for &shape in &[dims.into_shape_with_order(), dims.f()] {
deth_nonsquare!(f64, shape);
deth_nonsquare!(f32, shape);
deth_nonsquare!(c64, shape);
Expand Down

0 comments on commit b17abc3

Please sign in to comment.