Commit 167959b3 authored by Sebastian Hutschenreuter's avatar Sebastian Hutschenreuter
Browse files

fixed __pow__ linearization

parents 237b64d0 d304f819
......@@ -57,6 +57,11 @@ class Operator(NiftyMetaBase()):
return NotImplemented
return _OpSum(self, x)
def __sub__(self, x):
if not isinstance(x, Operator):
return NotImplemented
return _OpSum(self, -x)
def __pow__(self, power):
if not np.isscalar(power):
return NotImplemented
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