Skip to content

Commit

Permalink
Merge branch 'fix/combined_xerr' of github.com:s-kuberski/pyerrors in…
Browse files Browse the repository at this point in the history
…to fix/combined_xerr
  • Loading branch information
Simon Kuberski committed Sep 13, 2024
2 parents 7dcee70 + 0bce9a5 commit 5d48df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/linalg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ def test_matrix_functions():
for (i, j), entry in np.ndenumerate(check_inv):
entry.gamma_method()
if(i == j):
assert math.isclose(entry.value, 1.0, abs_tol=1e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
assert math.isclose(entry.value, 1.0, abs_tol=2e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
else:
assert math.isclose(entry.value, 0.0, abs_tol=1e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
assert math.isclose(entry.dvalue, 0.0, abs_tol=1e-9), 'dvalue ' + str(i) + ',' + str(j) + ' ' + str(entry.dvalue)
assert math.isclose(entry.value, 0.0, abs_tol=2e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
assert math.isclose(entry.dvalue, 0.0, abs_tol=2e-9), 'dvalue ' + str(i) + ',' + str(j) + ' ' + str(entry.dvalue)

# Check Cholesky decomposition
sym = np.dot(matrix, matrix.T)
Expand Down

0 comments on commit 5d48df6

Please sign in to comment.