Skip to content
Snippets Groups Projects

operator.py: Raise not-implemented in matmul call

Merged Gordian Edenhofer requested to merge nifty6_notimplemented into NIFTy_6
2 files
+ 6
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -175,7 +175,7 @@ class LinearOperator(Operator):
@@ -175,7 +175,7 @@ class LinearOperator(Operator):
from ..linearization import Linearization
from ..linearization import Linearization
if isinstance(x, Linearization):
if isinstance(x, Linearization):
return x.new(self(x._val), self(x._jac))
return x.new(self(x._val), self(x._jac))
return self.__matmul__(x)
return self@x
def times(self, x):
def times(self, x):
"""Applies the Operator to a given Field.
"""Applies the Operator to a given Field.
Loading