Question

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++;

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top