Skip to content

Commit

Permalink
Update eigen.py
Browse files Browse the repository at this point in the history
fix LinAlgError
  • Loading branch information
erichson authored Aug 8, 2020
1 parent 19c63fd commit 2455e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ristretto/eigen.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def compute_reigh_nystroem(A, rank, oversample=10, n_subspace=2, random_state=No
try:
# Cholesky factorizatoin
C = linalg.cholesky(B2, lower=True, overwrite_a=True, check_finite=False)
except LinAlgError:
except linalg.LinAlgError:
warnings.warn("Cholesky factorizatoin has failed, because array is not "
"positive definite. Using SVD instead.")
# Eigendecompositoin
Expand Down

0 comments on commit 2455e4a

Please sign in to comment.