Skip to content
GitLab
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
951f490f
Commit
951f490f
authored
Mar 20, 2020
by
Philipp Arras
Browse files
Allow operator composition via __call__
parent
aca4d4b4
Pipeline
#71070
passed with stages
in 27 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/operator.py
View file @
951f490f
...
...
@@ -198,7 +198,7 @@ class Operator(metaclass=NiftyMeta):
return
self
.
apply
(
x
.
trivial_jac
()).
prepend_jac
(
x
.
jac
)
elif
isinstance
(
x
,
(
Field
,
MultiField
)):
return
self
.
apply
(
x
)
r
aise
TypeError
(
'Operator can only consume Field, MultiFields and Linearizations'
)
r
eturn
self
@
x
def
ducktape
(
self
,
name
):
from
.simple_linear_operators
import
ducktape
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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