mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 17:23:03 +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):
|
def solve(self):
|
||||||
x = self.x0[:]
|
x = self.x0[:]
|
||||||
if RichardsonMethod.convergence_norm(self.A, self.omega, self.I) >= 1:
|
#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",
|
# 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):
|
for iteration in range(self.max_iterations):
|
||||||
Ax = LinearAlgebraUtils.matrix_vector_multiply(self.A, x)
|
Ax = LinearAlgebraUtils.matrix_vector_multiply(self.A, x)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user