From 42ebe9c053f06ae5950997cb70fb6c4bf8c366cc Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Fri, 25 Oct 2024 11:56:59 +0200 Subject: [PATCH] feat: temporary remove calculatimng richardson convergence --- code/richardson_method.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/richardson_method.py b/code/richardson_method.py index 2d963d11..47b08394 100644 --- a/code/richardson_method.py +++ b/code/richardson_method.py @@ -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)