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
Neel Shah
NIFTy
Commits
938935b9
Commit
938935b9
authored
May 31, 2021
by
Philipp Frank
Committed by
Philipp Arras
May 31, 2021
Browse files
Hotfix vcge
parent
e60207e1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/operators/energy_operators.py
View file @
938935b9
...
...
@@ -240,7 +240,7 @@ class VariableCovarianceGaussianEnergy(LikelihoodOperator):
invoking the residual is used instead.
"""
r
=
FieldAdapter
(
self
.
_domain
[
self
.
_kr
],
self
.
_kr
)
ivar
=
FieldAdapter
(
self
.
_domain
[
self
.
_kr
],
self
.
_ki
)
ivar
=
FieldAdapter
(
self
.
_domain
[
self
.
_kr
],
self
.
_ki
)
.
real
sc
=
1.
if
self
.
_cplx
else
0.5
return
self
.
_dt
,
r
.
adjoint
@
(
ivar
.
ptw
(
'sqrt'
)
*
r
)
+
ivar
.
adjoint
@
(
sc
*
ivar
.
ptw
(
'log'
))
...
...
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