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
d84ec6c3
Commit
d84ec6c3
authored
Jun 18, 2019
by
Martin Reinecke
Browse files
Merge branch 'new_norm' of gitlab.mpcdf.mpg.de:mtr/pypocketfft into new_norm
parents
87832dd2
98f1ac09
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypocketfft.cc
View file @
d84ec6c3
...
...
@@ -152,14 +152,11 @@ template<typename T> py::array sym_rfftn_internal(const py::array &in,
py
::
array
fftn
(
const
py
::
array
&
a
,
py
::
object
axes
,
int
inorm
,
bool
inplace
,
size_t
nthreads
)
{
try
{
return
xfftn
(
a
,
axes
,
inorm
,
inplace
,
true
,
nthreads
);
}
catch
(
runtime_error
&
)
{
if
(
a
.
dtype
().
kind
()
==
'c'
)
return
xfftn
(
a
,
axes
,
inorm
,
inplace
,
true
,
nthreads
);
if
(
inplace
)
throw
runtime_error
(
"cannot do this operation in-place"
);
DISPATCH
(
a
,
f64
,
f32
,
flong
,
sym_rfftn_internal
,
(
a
,
axes
,
inorm
,
nthreads
))
}
}
py
::
array
ifftn
(
const
py
::
array
&
a
,
py
::
object
axes
,
int
inorm
,
...
...
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