Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
bb390ed7
Commit
bb390ed7
authored
7 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Patches
Plain Diff
tweaks
parent
7b463c37
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nifty/library/wiener_filter/wiener_filter_energy.py
+4
-2
4 additions, 2 deletions
nifty/library/wiener_filter/wiener_filter_energy.py
test/test_spaces/test_lm_space.py
+0
-10
0 additions, 10 deletions
test/test_spaces/test_lm_space.py
with
4 additions
and
12 deletions
nifty/library/wiener_filter/wiener_filter_energy.py
+
4
−
2
View file @
bb390ed7
...
...
@@ -23,12 +23,13 @@ class WienerFilterEnergy(Energy):
The prior signal covariance in harmonic space.
"""
def
__init__
(
self
,
position
,
d
,
R
,
N
,
S
):
def
__init__
(
self
,
position
,
d
,
R
,
N
,
S
,
inverter
):
super
(
WienerFilterEnergy
,
self
).
__init__
(
position
=
position
)
self
.
d
=
d
self
.
R
=
R
self
.
N
=
N
self
.
S
=
S
self
.
_inverter
=
inverter
def
at
(
self
,
position
):
return
self
.
__class__
(
position
=
position
,
d
=
self
.
d
,
R
=
self
.
R
,
N
=
self
.
N
,
...
...
@@ -47,7 +48,8 @@ class WienerFilterEnergy(Energy):
@property
@memo
def
curvature
(
self
):
return
WienerFilterCurvature
(
R
=
self
.
R
,
N
=
self
.
N
,
S
=
self
.
S
)
return
WienerFilterCurvature
(
R
=
self
.
R
,
N
=
self
.
N
,
S
=
self
.
S
,
inverter
=
self
.
_inverter
)
@property
@memo
...
...
This diff is collapsed.
Click to expand it.
test/test_spaces/test_lm_space.py
+
0
−
10
View file @
bb390ed7
...
...
@@ -78,16 +78,6 @@ def get_weight_configs():
]
def
get_hermitian_configs
():
np
.
random
.
seed
(
42
)
h_0_res_real
=
np
.
random
.
rand
(
32
,
16
,
6
).
astype
(
np
.
complex128
)
h_0_res_imag
=
np
.
random
.
rand
(
32
,
16
,
6
).
astype
(
np
.
complex128
)
h_0_x
=
h_0_res_real
+
h_0_res_imag
*
1j
return
[
[
h_0_x
,
h_0_res_real
,
h_0_res_imag
]
]
class
LMSpaceInterfaceTests
(
unittest
.
TestCase
):
@expand
([[
'
lmax
'
,
int
],
[
'
mmax
'
,
int
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment