I have a loop in which I have an FFT and an inverse FFT. Since the vector of the k+1
-th iteration I apply the FFT on depends on the data of the k
-th iteration, I cannot use a gfor
loop to parallelize the program. Therefore, I wanted to speed up the FFTs in the loop. I switched from MATLAB (which uses the FFTW
library) to Arrayfire. However, it is not faster, but slower a bit.
P.S: Timing in Arrayfire is performed by the timeit
function. On the other hand, the elapsed time returned by it is much shorter than the time I experience looking at the command prompt.
Does anyone know an explanation to these 2 problems? Thank you.