feat: further speed up of GEVP by skipping the call to matrix_symmetric

if matrix is already symmetric.
This commit is contained in:
Fabian Joswig 2022-07-19 12:49:32 +01:00
parent 2c2890d5ea
commit 1d2c41ae54

View file

@ -301,7 +301,11 @@ class Corr:
warnings.warn("Argument 'sorted_list' is deprecated, use 'sort' instead.", DeprecationWarning) warnings.warn("Argument 'sorted_list' is deprecated, use 'sort' instead.", DeprecationWarning)
sort = kwargs.get("sorted_list") sort = kwargs.get("sorted_list")
symmetric_corr = self.matrix_symmetric() if self.is_matrix_symmetric():
symmetric_corr = self
else:
symmetric_corr = self.matrix_symmetric()
if sort is None: if sort is None:
if (ts is None): if (ts is None):
raise Exception("ts is required if sort=None.") raise Exception("ts is required if sort=None.")