Skip to content

Implement SciPy-compatible FFT functions - #1745

Merged
takagi merged 6 commits into
cupy:masterfrom
not522:scipy_fft
Dec 18, 2018
Merged

takagi merged 6 commits into
cupy:masterfrom
not522:scipy_fft

Conversation

@not522

@not522 not522 commented Oct 24, 2018

Copy link
Copy Markdown
Member

This PR implements SciPy-compatible FFT functions. They use in-place FFT if overwrite_x is True and transforms are C2C, which is requested at #1669.

cuFFT also supports in-place R2C and C2R FFTs, but they are not recommended (see https://docs.nvidia.com/cuda/cufft/index.html#accuracy-and-performance), therefore we use out-of-place mode in such cases.

@toslunar toslunar self-assigned this Nov 21, 2018
@takagi

takagi commented Dec 17, 2018

Copy link
Copy Markdown
Contributor

@toslunar Can I take over reviewing this PR?

@toslunar

Copy link
Copy Markdown
Member

@takagi Sure. Thanks.

@takagi takagi assigned takagi and unassigned toslunar Dec 17, 2018
@takagi

takagi commented Dec 17, 2018

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

@takagi takagi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you check the minor comments on English grammar?

Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved
Comment thread cupyx/scipy/fftpack/fft.py Resolved

@takagi takagi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you check another comment on documentation?

buf += _section(
'Sparse Matrices',
'scipy.sparse', 'cupyx.scipy.sparse', 'SciPy')
buf += _section(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you move this section before "Sparse Matrices" to follow SciPy's API reference list if you don't have a special reason?

https://docs.scipy.org/doc/scipy/reference/index.html#api-reference

@takagi

takagi commented Dec 17, 2018 •

Copy link
Copy Markdown
Contributor

LGTM except the minor comments above!

@takagi takagi added this to the v6.0.0b2 milestone Dec 17, 2018
@takagi takagi added cat:feature New features/APIs to-be-backported Pull-requests to be backported to stable branch labels Dec 17, 2018
@toslunar toslunar removed the to-be-backported Pull-requests to be backported to stable branch label Dec 17, 2018
@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 6c7622f, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

@not522

not522 commented Dec 18, 2018

Copy link
Copy Markdown
Member Author

I fixed documents according to your comment. Also, test fails were fixed.

@takagi

takagi commented Dec 18, 2018

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

@takagi takagi added the st:test-and-merge (deprecated) Ready to merge after test pass. label Dec 18, 2018
@takagi

takagi commented Dec 18, 2018

Copy link
Copy Markdown
Contributor

LGTM, will merge after CI finish!

@chainer-ci

Copy link
Copy Markdown
Member

Jenkins CI test (for commit 18317f9, target branch master) succeeded!

@takagi
takagi merged commit be45615 into cupy:master Dec 18, 2018
@not522
not522 deleted the scipy_fft branch December 18, 2018 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:feature New features/APIs st:test-and-merge (deprecated) Ready to merge after test pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants