From 525e6bbcd28cb8c04a41463bf7e9806dbd9b747e Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Wed, 1 May 2019 16:35:47 +0100 Subject: fix CGLS --- Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py b/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py index e65bc89..4d4843c 100755 --- a/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py @@ -23,6 +23,7 @@ Created on Thu Feb 21 11:11:23 2019 """ from ccpi.optimisation.algorithms import Algorithm + class CGLS(Algorithm): '''Conjugate Gradient Least Squares algorithm @@ -83,4 +84,4 @@ class CGLS(Algorithm): self.d = s + beta*self.d def update_objective(self): - self.loss.append(self.r.squared_norm()) + self.loss.append(self.r.squared_norm()) \ No newline at end of file -- cgit v1.2.3