문제

this is maybe newbei question , but i dont know how to fast acces to real part of fftw_complex with FFFTW, i cant use .real() method,

I need convert this to double array, dynamic array in c++;

도움이 되었습니까?

해결책

From the docs, 2 second Google search:

4.1.1 Complex numbers

The default FFTW interface uses double precision for all floating-point numbers, and defines a fftw_complex type to hold complex numbers as:

 typedef double fftw_complex[2];

Here, the [0] element holds the real part and the 1 element holds the imaginary part.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top