diff options
author | epapoutsellis <epapoutsellis@gmail.com> | 2019-04-11 12:08:18 +0100 |
---|---|---|
committer | epapoutsellis <epapoutsellis@gmail.com> | 2019-04-11 12:08:18 +0100 |
commit | 877c91a73833313885daae2ae8e73a7b5b0a9950 (patch) | |
tree | d4e32336ead3dde38bac2f5218faf8257307b077 /Wrappers/Python | |
parent | b9cf8208aa69eaa40e74d8f1d36c455f1f6c9548 (diff) | |
download | framework-877c91a73833313885daae2ae8e73a7b5b0a9950.tar.gz framework-877c91a73833313885daae2ae8e73a7b5b0a9950.tar.bz2 framework-877c91a73833313885daae2ae8e73a7b5b0a9950.tar.xz framework-877c91a73833313885daae2ae8e73a7b5b0a9950.zip |
memopt test
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 |