mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 17:43:12 +02:00
feat: temporary remove calculatimng richardson convergence
This commit is contained in:
parent
76815542f5
commit
42ebe9c053
@ -32,8 +32,8 @@ class RichardsonMethod:
|
||||
|
||||
def solve(self):
|
||||
x = self.x0[:]
|
||||
if RichardsonMethod.convergence_norm(self.A, self.omega, self.I) >= 1:
|
||||
return RichardsonMethod.convergence_norm(self.A, self.omega, self.I), "Richardson method for those values will NOT converge",
|
||||
#if RichardsonMethod.convergence_norm(self.A, self.omega, self.I) >= 1:
|
||||
# return RichardsonMethod.convergence_norm(self.A, self.omega, self.I), "Richardson method for those values will NOT converge",
|
||||
|
||||
for iteration in range(self.max_iterations):
|
||||
Ax = LinearAlgebraUtils.matrix_vector_multiply(self.A, x)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user