adis300 / fft-c

Elegant Fast Fourier Transform in C. Making fft.c from fftpack user-friendly.
http://www.netlib.org/fftpack/
MIT License
22 stars 4 forks source link

Inverse FFT #3

Closed matthewfarstad closed 9 months ago

matthewfarstad commented 9 months ago

Hello!

Excellent library. I am trying to apply inverse fft. Can I not just run fft_forward and fft_backward with the same transformer? I've also tried making a new transformer for backward and that didn't work either. Comparing initial data to data after forward/backward should give same information, yes?

adis300 commented 9 months ago

Yes you can. If you want to get the original input, it's better to use the output from fft_forward as input for fft_backward. Please refer to https://www.netlib.org/fftpack/ this library is a wrapper for this code.