mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
feat: GEVP not evaluated for t <= t0, additional checks added,
Eigenvector sort method can now cope with None entries.
This commit is contained in:
parent
165e294b90
commit
10fc8b1f6e
2 changed files with 10 additions and 8 deletions
|
@ -230,8 +230,8 @@ def test_matrix_corr():
|
|||
corr_mat = pe.Corr(np.array([[corr_aa, corr_ab], [corr_ab, corr_aa]]))
|
||||
corr_mat.item(0, 0)
|
||||
|
||||
vec_0 = corr_mat.GEVP(0, 0, sorted_list=None)
|
||||
vec_1 = corr_mat.GEVP(0, 0, state=1, sorted_list=None)
|
||||
vec_0 = corr_mat.GEVP(0, 1, sorted_list=None)
|
||||
vec_1 = corr_mat.GEVP(0, 1, state=1, sorted_list=None)
|
||||
|
||||
corr_0 = corr_mat.projected(vec_0)
|
||||
corr_1 = corr_mat.projected(vec_1)
|
||||
|
@ -240,7 +240,7 @@ def test_matrix_corr():
|
|||
assert np.all([o == 0 for o in corr_1 - corr_aa])
|
||||
|
||||
corr_mat.GEVP(0, sorted_list="Eigenvalue")
|
||||
corr_mat.GEVP(0, 0, sorted_list="Eigenvector")
|
||||
corr_mat.GEVP(0, 1, sorted_list="Eigenvector")
|
||||
|
||||
corr_mat.matrix_symmetric()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue