mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 13:03:05 +02:00
Revert "Merge pull request #12 from kuhyx/ola"
This reverts commitad1f64e342, reversing changes made to2619f041d7.
This commit is contained in:
parent
39cc08350d
commit
e7fb4c545a
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user