mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
tests: Exception for negative matrix in GEVP tested.
This commit is contained in:
parent
7eebba8387
commit
ad1296ae47
1 changed files with 5 additions and 0 deletions
|
@ -310,6 +310,7 @@ def test_GEVP_warnings():
|
|||
with pytest.warns(DeprecationWarning):
|
||||
corr_mat.GEVP(0, sorted_list="Eigenvalue")
|
||||
|
||||
|
||||
def test_GEVP_exceptions():
|
||||
corr_aa = _gen_corr(1)
|
||||
corr_ab = 0.5 * corr_aa
|
||||
|
@ -371,6 +372,10 @@ def test_GEVP_exceptions():
|
|||
with pytest.raises(Exception):
|
||||
corr_0.matrix_symmetric()
|
||||
|
||||
n_corr_mat = -corr_mat
|
||||
with pytest.raises(np.linalg.LinAlgError):
|
||||
n_corr_mat.GEVP(2)
|
||||
|
||||
|
||||
def test_matrix_symmetric():
|
||||
corr_aa = _gen_corr(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue