Commit 398005ee authored by Philipp Arras's avatar Philipp Arras

Add force_apply

parent 71cc7162
...@@ -59,6 +59,9 @@ class Operator(NiftyMetaBase()): ...@@ -59,6 +59,9 @@ class Operator(NiftyMetaBase()):
def apply(self, x): def apply(self, x):
raise NotImplementedError raise NotImplementedError
def force(self, x):
return self.apply(x.extract(self.domain))
def _check_input(self, x): def _check_input(self, x):
from ..linearization import Linearization from ..linearization import Linearization
d = x.target if isinstance(x, Linearization) else x.domain d = x.target if isinstance(x, Linearization) else x.domain
......
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