scaling factor for CUFFT

前端 未结 2 875
小蘑菇
小蘑菇 2021-01-12 21:35

I wrote a simple test program, where I was doing Complex to Complex FT\'s and I just generated some data 1..50 and stuck it in for the real and imaginary part for each index

相关标签:
2条回答
  • 2021-01-12 21:55

    CUFFT has the same behavior as FFTW, it computes unnormalized FFTs. IFFT(FFT(A))=n A where n is the length of the vector. The length n is in number of samples (not floats or bytes). There are some padding differences between FFTW and CUFFT with C2R and R2C that can screw up a simple comparison, but not for C2C. I would double-check your data setup and length calculations, and verify your plan in both FFTW and CUFFT.

    0 讨论(0)
  • 2021-01-12 21:59

    This ended up being a problem with the way the absolute values of the complex number was being calculated. in the std::complex library, it was computing the distance of the vector.

    0 讨论(0)
提交回复
热议问题