mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 12:03:42 +02:00
feat: Exception added if Corr.GEVP is called on single correlator
instead of a correlator matrix.
This commit is contained in:
parent
a6deb52a04
commit
77f0fbf699
1 changed files with 4 additions and 0 deletions
|
@ -259,6 +259,10 @@ class Corr:
|
||||||
"Eigenvector" - Use the method described in arXiv:2004.10472 [hep-lat] to find the set of v(t) belonging to the state.
|
"Eigenvector" - Use the method described in arXiv:2004.10472 [hep-lat] to find the set of v(t) belonging to the state.
|
||||||
The reference state is identified by its eigenvalue at t=ts
|
The reference state is identified by its eigenvalue at t=ts
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if self.N == 1:
|
||||||
|
raise Exception("GEVP methods only works on correlator matrices and not single correlators.")
|
||||||
|
|
||||||
symmetric_corr = self.matrix_symmetric()
|
symmetric_corr = self.matrix_symmetric()
|
||||||
if sorted_list is None:
|
if sorted_list is None:
|
||||||
if (ts is None):
|
if (ts is None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue