From 877c91a73833313885daae2ae8e73a7b5b0a9950 Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Thu, 11 Apr 2019 12:08:18 +0100 Subject: memopt test --- Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py b/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py index d07005a..ac37e13 100644 --- a/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py @@ -161,7 +161,6 @@ def PDHG_old(f, g, operator, tau = None, sigma = None, opt = None, **kwargs): else: - operator.direct(xbar, out = y_tmp) y_tmp *= sigma y_tmp += y_old @@ -178,8 +177,8 @@ def PDHG_old(f, g, operator, tau = None, sigma = None, opt = None, **kwargs): xbar += x - x_old = x.copy() - y_old = y.copy() + x_old.fill(x) + y_old.fill(y) # pass -- cgit v1.2.3