Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
eac959bd
Commit
eac959bd
authored
Apr 03, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes2' into 'NIFTy_5'
fixing metric of sum operator See merge request
!308
parents
19335917
644bb4f0
Pipeline
#46497
passed with stages
in 18 minutes and 24 seconds
Changes
1
Pipelines
6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
nifty5/operators/operator.py
nifty5/operators/operator.py
+4
-1
No files found.
nifty5/operators/operator.py
View file @
eac959bd
...
...
@@ -392,7 +392,10 @@ class _OpSum(Operator):
op
=
lin1
.
_jac
.
_myadd
(
lin2
.
_jac
,
False
)
res
=
lin1
.
new
(
lin1
.
_val
.
unite
(
lin2
.
_val
),
op
(
x
.
jac
))
if
lin1
.
_metric
is
not
None
and
lin2
.
_metric
is
not
None
:
res
=
res
.
add_metric
(
self
.
_op1
(
x
).
_metric
+
self
.
_op2
(
x
).
_metric
)
from
.sandwich_operator
import
SandwichOperator
met
=
lin1
.
_metric
.
_myadd
(
lin2
.
_metric
,
False
)
met
=
SandwichOperator
.
make
(
x
.
jac
,
met
)
res
=
res
.
add_metric
(
met
)
return
res
def
_simplify_for_constant_input_nontrivial
(
self
,
c_inp
):
...
...
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