Additional GEVP method with errors (#195)

* Added the function error_gevp() to compute the gevp with statistical errors.

* Changed method name from error_gevp to error_GEVP and removed automatic gamma method

* added auto_gamma to error_GEVP

* Specified exceptions in Corr.error_GEVP

* Fixed a wrong path. It should be np.linalg.LinAlgError

* Added a test for error_GEVP

* The tests of error_gevp loads a test matrix

* Incorporated eigenvectors with uncertainties in GEVP routine

* Cleaned up GEVP routines

* Cleaned up breaking change from merge

* Released tolerance in test of GEVP

* Repaired broken GEVP test

---------

Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
This commit is contained in:
JanNeuendorf 2023-11-17 18:57:18 +01:00 committed by GitHub
parent a8d16631d8
commit e1a4d0c218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 141 additions and 23 deletions

View file

@ -297,6 +297,10 @@ def test_matrix_functions():
for j in range(dim):
assert tmp[j].is_zero()
# Check eigv
v2 = pe.linalg.eigv(sym)
assert(np.all(v - v2).is_zero())
# Check eig function
e2 = pe.linalg.eig(sym)
assert np.all(np.sort(e) == np.sort(e2))