Commit 7d91c08e authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'nifty6_notimplemented' into 'NIFTy_6' Raise not-implemented in matmul call

See merge request !403
parents f9ca9bad 40b6376b
Pipeline #67713 passed with stages
in 15 minutes and 11 seconds
......@@ -175,7 +175,7 @@ class LinearOperator(Operator):
from ..linearization import Linearization
if isinstance(x, Linearization):
return, self(x._jac))
return self.__matmul__(x)
return self@x
def times(self, x):
"""Applies the Operator to a given Field.
......@@ -79,6 +79,11 @@ class Operator(metaclass=NiftyMeta):
return NotImplemented
return _OpChain.make((self, x))
def __rmatmul__(self, x):
if not isinstance(x, Operator):
return NotImplemented
return _OpChain.make((x, self))
def partial_insert(self, x):
from ..multi_domain import MultiDomain
if not isinstance(x, Operator):
Markdown is supported
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