Revert "Merge pull request #12 from kuhyx/ola"

This reverts commit ad1f64e342, reversing
changes made to 2619f041d7.
This commit is contained in:
Krzysztof Rudnicki 2024-12-05 20:12:59 +01:00
parent 39cc08350d
commit e7fb4c545a

View File

@ -23,7 +23,10 @@ class RichardsonMethod:
@staticmethod
def calculate_eigenvalues(LinAlgType, A, type):
return EigenvalueMethods.inverse_power_method(LinAlgType, A, type), EigenvalueMethods.power_method(LinAlgType, A, type)
eigenvalues = np.linalg.eigvals(A)
lambda_min = np.min(eigenvalues)
lambda_max = np.max(eigenvalues)
return lambda_min, lambda_max
@staticmethod
def calculate_omega(lambda_min, lambda_max):