Skip to content

Commit 6571d86

Browse files
committed
Use sup norm for testing least_squares
1 parent d470ad2 commit 6571d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ndarray-linalg/tests/least_squares.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn test_exact<T: Scalar + Lapack>(a: Array2<T>) {
1919

2020
// b == Ax
2121
let ax = a.dot(&x);
22-
assert_close_l2!(&b, &ax, T::real(1.0e-4));
22+
assert_close_max!(&b, &ax, T::real(1.0e-4));
2323
}
2424

2525
macro_rules! impl_exact {
@@ -102,7 +102,7 @@ fn test_underdetermined<T: Scalar + Lapack>(a: Array2<T>) {
102102
// b == Ax
103103
let x = result.solution;
104104
let ax = a.dot(&x);
105-
assert_close_l2!(&b, &ax, T::real(1.0e-4));
105+
assert_close_max!(&b, &ax, T::real(1.0e-4));
106106
}
107107

108108
macro_rules! impl_underdetermined {

0 commit comments

Comments
 (0)