Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
8b60e308
Commit
8b60e308
authored
Mar 13, 2020
by
Philipp Arras
Browse files
Cosmetics
parent
568ad12a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/linear_operator.py
View file @
8b60e308
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment