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
f3dea2e4
Commit
f3dea2e4
authored
Mar 24, 2020
by
Philipp Arras
Browse files
Merge branch 'linearization_logic_fixups' into 'NIFTy_6'
Linearization logic fixups See merge request
!427
parents
f507f3aa
951f490f
Pipeline
#71314
passed with stages
in 17 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/operators/operator.py
View file @
f3dea2e4
...
@@ -27,10 +27,6 @@ class Operator(metaclass=NiftyMeta):
...
@@ -27,10 +27,6 @@ class Operator(metaclass=NiftyMeta):
domain, and can also provide the Jacobian.
domain, and can also provide the Jacobian.
"""
"""
VALUE_ONLY
=
0
WITH_JAC
=
1
WITH_METRIC
=
2
@
property
@
property
def
domain
(
self
):
def
domain
(
self
):
"""The domain on which the Operator's input Field is defined.
"""The domain on which the Operator's input Field is defined.
...
@@ -202,7 +198,7 @@ class Operator(metaclass=NiftyMeta):
...
@@ -202,7 +198,7 @@ class Operator(metaclass=NiftyMeta):
return
self
.
apply
(
x
.
trivial_jac
()).
prepend_jac
(
x
.
jac
)
return
self
.
apply
(
x
.
trivial_jac
()).
prepend_jac
(
x
.
jac
)
elif
isinstance
(
x
,
(
Field
,
MultiField
)):
elif
isinstance
(
x
,
(
Field
,
MultiField
)):
return
self
.
apply
(
x
)
return
self
.
apply
(
x
)
r
aise
TypeError
(
'Operator can only consume Field, MultiFields and Linearizations'
)
r
eturn
self
@
x
def
ducktape
(
self
,
name
):
def
ducktape
(
self
,
name
):
from
.simple_linear_operators
import
ducktape
from
.simple_linear_operators
import
ducktape
...
...
Gordian Edenhofer
@gedenhof
mentioned in issue
#289 (closed)
·
Mar 25, 2020
mentioned in issue
#289 (closed)
mentioned in issue #289
Toggle commit list
Write
Preview
Supports
Markdown
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