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
fa998553
Commit
fa998553
authored
Apr 11, 2019
by
Martin Reinecke
Browse files
revert change
parent
71d6ecf5
Pipeline
#46737
canceled with stages
in 1 minute and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/energy_operators.py
View file @
fa998553
...
...
@@ -193,12 +193,8 @@ class PoissonianEnergy(EnergyOperator):
self
.
_check_input
(
x
)
res
=
x
.
sum
()
-
x
.
log
().
vdot
(
self
.
_d
)
if
not
isinstance
(
x
,
Linearization
):
if
res
.
val
!=
res
.
val
:
return
Field
.
scalar
(
np
.
inf
)
return
Field
.
scalar
(
res
)
if
not
x
.
want_metric
:
if
res
.
val
.
val
!=
res
.
val
.
val
:
res
=
res
.
new
(
Field
.
scalar
(
np
.
inf
),
res
.
jac
)
return
res
metric
=
SandwichOperator
.
make
(
x
.
jac
,
makeOp
(
1.
/
x
.
val
))
return
res
.
add_metric
(
metric
)
...
...
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