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
Martin Reinecke
pypocketfft
Commits
74dd5e0b
Commit
74dd5e0b
authored
Apr 29, 2019
by
Martin Reinecke
Browse files
test inplace Hartley2
parent
415305d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
74dd5e0b
...
...
@@ -114,6 +114,9 @@ def test_hartley2_identity(shp):
v1
=
pypocketfft
.
hartley2
(
pypocketfft
.
hartley2
(
a
))
/
a
.
size
vmax
=
np
.
max
(
np
.
abs
(
a
))
assert
(
_l2error
(
a
,
v1
)
<
1e-15
*
vmax
)
v1
=
a
.
copy
()
assert
(
pypocketfft
.
hartley2
(
pypocketfft
.
hartley2
(
v1
,
inplace
=
True
),
fct
=
1.
/
a
.
size
,
inplace
=
True
)
is
v1
)
assert
(
_l2error
(
a
,
v1
)
<
1e-15
*
vmax
)
@
pmp
(
"shp"
,
shapes2D
)
@
pmp
(
"axes"
,
((
0
,),(
1
,),(
0
,
1
),(
1
,
0
)))
...
...
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