Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
d8ae4d02
Commit
d8ae4d02
authored
May 28, 2020
by
Lukas Platz
Browse files
next try
parent
705c8bc7
Pipeline
#75698
passed with stages
in 13 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/linearization.py
View file @
d8ae4d02
...
...
@@ -19,7 +19,6 @@ import numpy as np
from
.sugar
import
makeOp
from
.operators.operator
import
Operator
from
.operators.sandwich_operator
import
SandwichOperator
class
Linearization
(
Operator
):
...
...
@@ -66,7 +65,10 @@ class Linearization(Operator):
return
self
.
make_var
(
self
.
_val
,
self
.
_want_metric
)
def
prepend_jac
(
self
,
jac
):
metric
=
None
if
self
.
_metric
is
None
else
SandwichOperator
.
make
(
jac
,
self
.
_metric
)
if
self
.
_metric
is
None
:
return
self
.
new
(
self
.
_val
,
self
.
_jac
@
jac
)
from
.operators.sandwich_operator
import
SandwichOperator
metric
=
SandwichOperator
.
make
(
jac
,
self
.
_metric
)
return
self
.
new
(
self
.
_val
,
self
.
_jac
@
jac
,
metric
)
@
property
...
...
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