Skip to content

Commit b3dd41c

Browse files
committed
s/(Ix, Ix)/Ix2/g
1 parent 13fc915 commit b3dd41c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/cholesky.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use ndarray::prelude::*;
99
use ndarray_linalg::prelude::*;
1010
use ndarray_rand::RandomExt;
1111

12-
fn all_close(a: Array<f64, (Ix, Ix)>, b: Array<f64, (Ix, Ix)>) {
12+
fn all_close(a: Array<f64, Ix2>, b: Array<f64, Ix2>) {
1313
if !a.all_close(&b, 1.0e-7) {
1414
panic!("\nTwo matrices are not equal:\na = \n{:?}\nb = \n{:?}\n",
1515
a,

tests/lu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use ndarray_linalg::prelude::*;
99
use rand::distributions::*;
1010
use ndarray_rand::RandomExt;
1111

12-
fn all_close(a: Array<f64, (Ix, Ix)>, b: Array<f64, (Ix, Ix)>) {
12+
fn all_close(a: Array<f64, Ix2>, b: Array<f64, Ix2>) {
1313
if !a.all_close(&b, 1.0e-7) {
1414
panic!("\nTwo matrices are not equal:\na = \n{:?}\nb = \n{:?}\n",
1515
a,
@@ -68,7 +68,7 @@ test_permutate_t!(permutate_4x3_t,
6868
&[[1., 4., 7., 10.], [2., 5., 8., 11.], [3., 6., 9., 12.]],
6969
&[[10., 11., 12.], [4., 5., 6.], [7., 8., 9.], [1., 2., 3.]]);
7070

71-
fn test_lu(a: Array<f64, (Ix, Ix)>) {
71+
fn test_lu(a: Array<f64, Ix2>) {
7272
println!("a = \n{:?}", &a);
7373
let (p, l, u) = a.clone().lu().unwrap();
7474
println!("P = \n{:?}", &p);

0 commit comments

Comments
 (0)