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
8
Merge Requests
8
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
7dd0d735
Commit
7dd0d735
authored
Feb 23, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small tweak
parent
426d824c
Pipeline
#25413
passed with stages
in 5 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
nifty4/library/nonlinear_power_energy.py
nifty4/library/nonlinear_power_energy.py
+4
-3
No files found.
nifty4/library/nonlinear_power_energy.py
View file @
7dd0d735
...
...
@@ -37,7 +37,7 @@ class NonlinearPowerEnergy(Energy):
position : Field
The current position of this energy.
m : Field
The map wh
ichs
power spectrum has to be inferred
The map wh
ose
power spectrum has to be inferred
D : EndomorphicOperator
The curvature of the Gaussian encoding the posterior covariance.
If not specified, the map is assumed to be no reconstruction.
...
...
@@ -88,8 +88,9 @@ class NonlinearPowerEnergy(Energy):
residual
=
self
.
d
-
\
self
.
Instrument
(
self
.
nonlinearity
(
map_s
))
lh
=
0.5
*
residual
.
vdot
(
self
.
N
.
inverse_times
(
residual
))
grad
=
LinR
.
adjoint_times
(
self
.
N
.
inverse_times
(
residual
))
tmp
=
self
.
N
.
inverse_times
(
residual
)
lh
=
0.5
*
residual
.
vdot
(
tmp
)
grad
=
LinR
.
adjoint_times
(
tmp
)
if
self
.
_gradient
is
None
:
self
.
_value
=
lh
...
...
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