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
2fd77f20
Commit
2fd77f20
authored
May 08, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
synchronnize
parent
8d142ce6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
199 additions
and
184 deletions
+199
-184
pocketfft_hdronly.h
pocketfft_hdronly.h
+193
-178
pypocketfft.cc
pypocketfft.cc
+6
-6
No files found.
pocketfft_hdronly.h
View file @
2fd77f20
This diff is collapsed.
Click to expand it.
pypocketfft.cc
View file @
2fd77f20
...
...
@@ -85,7 +85,7 @@ template<typename T> py::array xfftn_internal(const py::array &in,
py
::
array
res
=
inplace
?
in
:
py
::
array_t
<
complex
<
T
>>
(
dims
);
ndarr
<
cmplx
<
T
>>
ain
(
in
.
data
(),
dims
,
copy_strides
(
in
));
ndarr
<
cmplx
<
T
>>
aout
(
res
.
mutable_data
(),
dims
,
copy_strides
(
res
));
pocketfft_
general_c
<
T
>
(
ain
,
aout
,
axes
,
fwd
,
fct
);
general_c
<
T
>
(
ain
,
aout
,
axes
,
fwd
,
fct
);
return
res
;
}
...
...
@@ -110,10 +110,10 @@ template<typename T> py::array rfftn_internal(const py::array &in,
py
::
array
res
=
py
::
array_t
<
complex
<
T
>>
(
dims_out
);
ndarr
<
T
>
ain
(
in
.
data
(),
dims_in
,
copy_strides
(
in
));
ndarr
<
cmplx
<
T
>>
aout
(
res
.
mutable_data
(),
dims_out
,
copy_strides
(
res
));
pocketfft_
general_r2c
<
T
>
(
ain
,
aout
,
axes
.
back
(),
fct
);
general_r2c
<
T
>
(
ain
,
aout
,
axes
.
back
(),
fct
);
if
(
axes
.
size
()
==
1
)
return
res
;
shape_t
axes2
(
axes
.
begin
(),
--
axes
.
end
());
pocketfft_
general_c
<
T
>
(
aout
,
aout
,
axes2
,
true
,
1.
);
general_c
<
T
>
(
aout
,
aout
,
axes2
,
true
,
1.
);
return
res
;
}
py
::
array
rfftn
(
const
py
::
array
&
in
,
py
::
object
axes_
,
double
fct
)
...
...
@@ -128,7 +128,7 @@ template<typename T> py::array xrfft_scipy(const py::array &in,
py
::
array
res
=
inplace
?
in
:
py
::
array_t
<
T
>
(
dims
);
ndarr
<
T
>
ain
(
in
.
data
(),
dims
,
copy_strides
(
in
));
ndarr
<
T
>
aout
(
res
.
mutable_data
(),
dims
,
copy_strides
(
res
));
pocketfft_
general_r
<
T
>
(
ain
,
aout
,
axis
,
fwd
,
fct
);
general_r
<
T
>
(
ain
,
aout
,
axis
,
fwd
,
fct
);
return
res
;
}
py
::
array
rfft_scipy
(
const
py
::
array
&
in
,
size_t
axis
,
double
fct
,
bool
inplace
)
...
...
@@ -160,7 +160,7 @@ template<typename T> py::array irfftn_internal(const py::array &in,
py
::
array
res
=
py
::
array_t
<
T
>
(
dims_out
);
ndarr
<
cmplx
<
T
>>
ain
(
inter
.
data
(),
copy_shape
(
inter
),
copy_strides
(
inter
));
ndarr
<
T
>
aout
(
res
.
mutable_data
(),
dims_out
,
copy_strides
(
res
));
pocketfft_
general_c2r
<
T
>
(
ain
,
aout
,
axis
,
fct
);
general_c2r
<
T
>
(
ain
,
aout
,
axis
,
fct
);
return
res
;
}
py
::
array
irfftn
(
const
py
::
array
&
in
,
py
::
object
axes_
,
size_t
lastsize
,
...
...
@@ -178,7 +178,7 @@ template<typename T> py::array hartley_internal(const py::array &in,
py
::
array
res
=
inplace
?
in
:
py
::
array_t
<
T
>
(
dims
);
ndarr
<
T
>
ain
(
in
.
data
(),
copy_shape
(
in
),
copy_strides
(
in
));
ndarr
<
T
>
aout
(
res
.
mutable_data
(),
copy_shape
(
res
),
copy_strides
(
res
));
pocketfft_
general_hartley
<
T
>
(
ain
,
aout
,
makeaxes
(
in
,
axes_
),
fct
);
general_hartley
<
T
>
(
ain
,
aout
,
makeaxes
(
in
,
axes_
),
fct
);
return
res
;
}
py
::
array
hartley
(
const
py
::
array
&
in
,
py
::
object
axes_
,
double
fct
,
...
...
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