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
98333117
Commit
98333117
authored
May 19, 2020
by
Martin Reinecke
Browse files
fix Linearization.outer
parent
6e6d9366
Pipeline
#75228
passed with stages
in 8 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/linearization.py
View file @
98333117
...
...
@@ -207,12 +207,13 @@ class Linearization(Operator):
return
self
.
__mul__
(
other
)
from
.operators.outer_product_operator
import
OuterProduct
if
other
.
jac
is
None
:
return
self
.
new
(
OuterProduct
(
self
.
_val
,
other
.
domain
)(
other
),
OuterProduct
(
self
.
_jac
(
self
.
_val
),
other
.
domain
))
return
self
.
new
(
OuterProduct
(
other
.
domain
,
self
.
_val
)(
other
),
OuterProduct
(
other
.
domain
,
self
.
_jac
(
self
.
_val
)))
tmp_op
=
OuterProduct
(
other
.
target
,
self
.
_val
)
return
self
.
new
(
OuterProduct
(
self
.
_val
,
other
.
target
)
(
other
.
_val
),
OuterProduct
(
self
.
_jac
(
self
.
_val
)
,
other
.
target
).
_myadd
(
OuterProduct
(
self
.
_val
,
other
.
target
)
(
other
.
_jac
),
False
))
tmp_op
(
other
.
_val
),
OuterProduct
(
other
.
target
,
self
.
_jac
(
self
.
_val
)).
_myadd
(
tmp_op
(
other
.
_jac
),
False
))
def
vdot
(
self
,
other
):
"""Computes the inner product of this Linearization with a Field or
...
...
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