diff options
Diffstat (limited to 'Wrappers/Python')
-rw-r--r-- | Wrappers/Python/ccpi/optimisation/algorithms/PDHG.py | 5 |
1 files 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 |