summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'Wrappers')
-rwxr-xr-xWrappers/Python/ccpi/optimisation/funcs.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/funcs.py b/Wrappers/Python/ccpi/optimisation/funcs.py
index f5463a3..90bc9e3 100755
--- a/Wrappers/Python/ccpi/optimisation/funcs.py
+++ b/Wrappers/Python/ccpi/optimisation/funcs.py
@@ -24,9 +24,11 @@ import numpy
class Function(object):
def __init__(self):
self.op = Identity()
- def __call__(self,x): return 0
- def grad(self,x): return 0
- def prox(self,x,tau): return x
+ def __call__(self,x): return 0
+ def grad(self, x): return 0
+ def prox(self, x, tau): return x
+ def gradient(self, x): return self.grad(x)
+ def proximal(self, x, tau): return self.prox(x, tau)
class Norm2(Function):