Skip to content

Commit

Permalink
Fix: rcond_hilbert test
Browse files Browse the repository at this point in the history
  • Loading branch information
gkobeaga authored and bluss committed Nov 24, 2024
1 parent 3e13736 commit fb1b6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndarray-linalg/tests/solve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ fn rcond_hilbert() {
macro_rules! rcond_hilbert {
($elem:ty, $rows:expr, $atol:expr) => {
let a = Array2::<$elem>::from_shape_fn(($rows, $rows), |(i, j)| {
1. / (i as $elem + j as $elem - 1.)
1. / (i as $elem + j as $elem + 1.)
});
assert_aclose!(a.rcond().unwrap(), 0., $atol);
assert_aclose!(a.rcond_into().unwrap(), 0., $atol);
Expand Down

0 comments on commit fb1b6d6

Please sign in to comment.