Commit b14a66ba authored by Philipp Arras's avatar Philipp Arras
Browse files

Add sum to operators

parent 68e9f355
......@@ -52,6 +52,11 @@ class Operator(NiftyMetaBase()):
return NotImplemented
return _OpProd(self, x)
def __add__(self, x):
if not isinstance(x, Operator):
return NotImplemented
return _OpSum.make([self, x])
def apply(self, x):
raise NotImplementedError
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment