Commit 8b60e308 authored by Philipp Arras's avatar Philipp Arras
Browse files

Cosmetics

parent 568ad12a
......@@ -15,6 +15,8 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
from ..field import Field
from ..multi_field import MultiField
from .operator import Operator
......@@ -168,11 +170,9 @@ class LinearOperator(Operator):
def __call__(self, x):
"""Same as :meth:`times`"""
from ..field import Field
from ..multi_field import MultiField
from ..linearization import Linearization
if isinstance(x, (Field, MultiField)):
return self.apply(x, self.TIMES)
from ..linearization import Linearization
if isinstance(x, Linearization):
return x.new(self(x._val), self).prepend_jac(x.jac)
return 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