Skip to content

Commit

Permalink
improve pos def check
Browse files Browse the repository at this point in the history
  • Loading branch information
wcxve committed Nov 13, 2024
1 parent 31aecc9 commit bd1b2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elisa/infer/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def __init__(self, minuit: Minuit, helper: Helper):
self._mle_unconstr = jnp.array(minuit.values, float)
mle, cov = helper.get_mle(self._mle_unconstr)

if np.array_equal(cov, cov.T):
if np.allclose(cov, cov.T):
try:
np.linalg.cholesky(cov)
pos_def = True
Expand Down

0 comments on commit bd1b2d4

Please sign in to comment.