Commit bd249a5f authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'fixups' into 'NIFTy_5'

Fixups

See merge request ift/nifty-dev!119
parents 14e3add1 75308112
......@@ -143,6 +143,9 @@ class LinearOperator(Operator):
"""
return self._capability
def force(self, x):
return self.apply(x.extract(self.domain), self.TIMES)
def apply(self, x, mode):
""" Applies the Operator to a given `x`, in a specified `mode`.
......
......@@ -60,6 +60,7 @@ class Operator(NiftyMetaBase()):
raise NotImplementedError
def force(self, x):
"""Extract correct subset of domain of x and apply operator."""
return self.apply(x.extract(self.domain))
def _check_input(self, x):
......
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