Hot answers tagged

4

FFTW is a nice library. Real forward, real backward, complex forward, complex backward. Refill the input arrays when executing a new plan. Works for me, see documentation via the link graciously supplied by MM for more details. Extracted from working code: //--- Have FFTW do the DFT via a FFTW Plan fftw_plan thePlan; /* //--- Real DFT ...


2

Not really. Welch's method is specifically designed to estimate spectral density and discards phase information. IFT and FT are almost identical and have the exact same complexity. If you want to do an IFT, just do an IFT unless you have a really good reason not to.


2

The FFT is faster than the naive DFT through matrix-vector products because it can reuse many intermediate results. However, for inputs this sparse, there's really not much that can be re-used, even in the best case. So, the most efficient way here is probably to work straight forward: Allocate the space ($N=7408800$ values) for your output (initialize with ...


Only top voted, non community-wiki answers of a minimum length are eligible