Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues about FFT #6

Closed
WangYun1995 opened this issue Dec 3, 2020 · 4 comments
Closed

Issues about FFT #6

WangYun1995 opened this issue Dec 3, 2020 · 4 comments

Comments

@WangYun1995
Copy link

Hello,

I want to analyze the spectrum of a 1D spatial function dens(x) by computing the Fourier Transform of it.
And I find that there are many interfaces for FFT, such as rfft_1d_forward, cfft_1d_forward and cfft_1d_backward.
What are the differences between them? What are the outputs?
Could you introduce them to me briefly?
Thank you!

@aamaricci
Copy link
Owner

As for SciPy, these are all interface to FFTPACK main functions.
We follow closely the SciPy setup here, take a look at: https://docs.scipy.org/doc/scipy/reference/fft.html
Or directly to FFTPACK documentation.

forward real and complex FFT are wrapped into fft
inverse or backward FFT are wrapped in ifft

There are many different cases (1d, 2d, nd, cos, sin, etc..), there are helpers functions like fftshift.
You should know a bit about discrete FFT to really understand what you need.

There are in addition even simple discrete FT, not really fast, but do the work in simple cases.
A

@WangYun1995
Copy link
Author

Hi,
Does the Scifor provide an interface to FFTW?

@aamaricci
Copy link
Owner

In the current implementation it does not. It should be straightforward to adapt the FFTPACK interface to FFTW library.

@WangYun1995
Copy link
Author

WangYun1995 commented Dec 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants