summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/L2NormSquared.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/functions/L2NormSquared.py b/Wrappers/Python/ccpi/optimisation/functions/L2NormSquared.py
index f96c7a1..3c06641 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/L2NormSquared.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/L2NormSquared.py
@@ -69,10 +69,10 @@ class L2NormSquared(Function):
out *= 2
else:
y = x
- if self.b is not None:
-# x.subtract(self.b, out=x)
- y = x - self.b
- return 2*y
+ if self.b is not None:
+ # x.subtract(self.b, out=x)
+ y = x - self.b
+ return 2*y
def convex_conjugate(self, x, out=None):