Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
f3dea2e4
Commit
f3dea2e4
authored
5 years ago
by
Philipp Arras
Browse files
Options
Downloads
Plain Diff
Merge branch 'linearization_logic_fixups' into 'NIFTy_6'
Linearization logic fixups See merge request
!427
parents
f507f3aa
951f490f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!427
Linearization logic fixups
Pipeline
#71314
passed
5 years ago
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nifty6/operators/operator.py
+1
-5
1 addition, 5 deletions
nifty6/operators/operator.py
with
1 addition
and
5 deletions
nifty6/operators/operator.py
+
1
−
5
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
...
...
This diff is collapsed.
Click to expand it.
Gordian Edenhofer
@gedenhof
mentioned in issue
#289 (closed)
·
5 years ago
mentioned in issue
#289 (closed)
mentioned in issue #289
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment