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
ift
NIFTy
Commits
ae9a3c5a
Commit
ae9a3c5a
authored
Nov 29, 2017
by
Martin Reinecke
Browse files
another try
parent
0b8d7056
Pipeline
#22370
failed with stage
in 4 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_fft_operator.py
View file @
ae9a3c5a
...
...
@@ -120,12 +120,12 @@ class FFTOperatorTests(unittest.TestCase):
@
expand
(
product
([
128
,
256
],
[
np
.
float64
,
np
.
float32
,
np
.
complex64
,
np
.
complex128
]))
def
test_dotsht2
(
self
,
lm
,
tp
):
tol
=
_get_rtol
(
tp
)
tol
=
10
*
_get_rtol
(
tp
)
a
=
ift
.
LMSpace
(
lmax
=
lm
)
b
=
ift
.
HPSpace
(
nside
=
lm
//
2
)
fft
=
ift
.
FFTOperator
(
domain
=
a
,
target
=
b
)
inp
=
ift
.
Field
.
from_random
(
domain
=
a
,
random_type
=
'normal'
,
std
=
1
,
mean
=
0
.1
,
dtype
=
tp
)
std
=
1
,
mean
=
0
,
dtype
=
tp
)
out
=
fft
.
times
(
inp
)
v1
=
np
.
sqrt
(
out
.
vdot
(
out
))
v2
=
np
.
sqrt
(
inp
.
vdot
(
fft
.
adjoint_times
(
out
)))
...
...
Write
Preview
Supports
Markdown
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