Skip to content

Commit

Permalink
Once more
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebBell committed Oct 26, 2024
1 parent ed98f52 commit 71014c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_numerics_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ def check_inv(matrix, rtol=None):
# This is very necessary, and was needed when testing on different CPU architectures
inv_norm = np.max(np.sum(np.abs(result), axis=1))
if cond < 1e10:
zero_thresh = 10*thresh
zero_thresh = thresh
elif cond < 1e14:
zero_thresh = 100*thresh
zero_thresh = 10*thresh
else:
zero_thresh = 1000*thresh
zero_thresh = 100*thresh
trivial_relative_to_norm_result = (np.abs(result)/inv_norm < zero_thresh)
trivial_relative_to_norm_expected = (np.abs(expected)/inv_norm < zero_thresh)
# Zero out in both matrices where either condition is met
Expand Down

0 comments on commit 71014c5

Please sign in to comment.