Skip to content

Commit fb1b6d6

Browse files
gkobeagabluss
authored andcommitted
Fix: rcond_hilbert test
1 parent 3e13736 commit fb1b6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ndarray-linalg/tests/solve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ fn rcond_hilbert() {
254254
macro_rules! rcond_hilbert {
255255
($elem:ty, $rows:expr, $atol:expr) => {
256256
let a = Array2::<$elem>::from_shape_fn(($rows, $rows), |(i, j)| {
257-
1. / (i as $elem + j as $elem - 1.)
257+
1. / (i as $elem + j as $elem + 1.)
258258
});
259259
assert_aclose!(a.rcond().unwrap(), 0., $atol);
260260
assert_aclose!(a.rcond_into().unwrap(), 0., $atol);

0 commit comments

Comments
 (0)