Closed Nakamotto closed 2 years ago
Put in real inputs, for example. In that case you should notice that the FFTW_FORWARD
and FFTW_BACKWARD
results are complex conjugates.
(If you think they are giving the same results for all inputs, then you are misinterpreting the results or doing something wrong. That's not how DFTs work, and someone would have probably noticed 25 years ago if FFTW got something so basic wrong.)
As to the same
fftw_complex *
, FORWARD and BACKWARD give the same result when usingfftw_plan_dft_2d
. Thanks for your time in advance!