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
P
pypocketfft
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Reinecke
pypocketfft
Commits
a9a6e6ab
Commit
a9a6e6ab
authored
Aug 04, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cleanup2' into 'master'
Cleanup2 See merge request
!21
parents
869e68d2
bef3070e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
378 additions
and
467 deletions
+378
-467
pocketfft_hdronly.h
pocketfft_hdronly.h
+367
-465
test.py
test.py
+11
-2
No files found.
pocketfft_hdronly.h
View file @
a9a6e6ab
This diff is collapsed.
Click to expand it.
test.py
View file @
a9a6e6ab
...
...
@@ -58,9 +58,18 @@ def irfft_scipy(a, axis, inorm=0, out=None, nthreads=1):
tol
=
{
np
.
float32
:
6e-7
,
np
.
float64
:
1.5e-15
,
np
.
longfloat
:
1e-18
}
ctype
=
{
np
.
float32
:
np
.
complex64
,
np
.
float64
:
np
.
complex128
,
np
.
longfloat
:
np
.
longcomplex
}
import
platform
on_wsl
=
"microsoft"
in
platform
.
uname
()[
3
].
lower
()
true_long_double
=
(
np
.
longfloat
!=
np
.
float64
and
not
on_wsl
)
dtypes
=
[
np
.
float32
,
np
.
float64
,
pytest
.
param
(
np
.
longfloat
,
marks
=
pytest
.
mark
.
xfail
(
not
true_long_double
,
reason
=
"Long double doesn't offer more precision"
))]
@
pmp
(
"len"
,
len1D
)
@
pmp
(
"inorm"
,
[
0
,
1
,
2
])
@
pmp
(
"dtype"
,
[
np
.
float32
,
np
.
float64
,
np
.
longfloat
]
)
@
pmp
(
"dtype"
,
dtypes
)
def
test1D
(
len
,
inorm
,
dtype
):
a
=
np
.
random
.
rand
(
len
)
-
0.5
+
1j
*
np
.
random
.
rand
(
len
)
-
0.5j
a
=
a
.
astype
(
ctype
[
dtype
])
...
...
@@ -199,7 +208,7 @@ def test_genuine_hartley_2D(shp, axes):
@
pmp
(
"len"
,
len1D
)
@
pmp
(
"inorm"
,
[
0
,
1
])
# inorm==2 not needed, tested via inverse
@
pmp
(
"type"
,
[
1
,
2
,
3
,
4
])
@
pmp
(
"dtype"
,
[
np
.
float32
,
np
.
float64
,
np
.
longfloat
]
)
@
pmp
(
"dtype"
,
dtypes
)
def
testdcst1D
(
len
,
inorm
,
type
,
dtype
):
a
=
(
np
.
random
.
rand
(
len
)
-
0.5
).
astype
(
dtype
)
eps
=
tol
[
dtype
]
...
...
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