- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am currently working on changing the FFT routines in a Fortran code from an older set of routines (VecFFT) to FFTW. However, the code that I am using does not use the built-in complex storage format for the Fourier coefficients, but rather uses separate real arrays for the real and imaginary components. Is there a way to have FFTW handle this sort of input and if so, could someone show me a sample line of code for how to accomplish this?
Thanks!
Sam Glidden
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
If I correctly understood can you have a look:
Code:
I'm interesting what mean pretfix Vect and postfix W in subroutines names?Subroutine RealsToComplex( N, ReArray, ImArray ) integer, intent(in) :: N real, intent(in) :: ReArray(N), ImArray(N) complex ComplexArray(N) ComplexArray = Cmplx( ReArray, ImArray ) end subroutine RealsToComplex Subroutine ComplexToReals( N, ComplexArray ) integer, intent(in) :: N complex, intent(in) :: ComplexArray(N) real ReArray(N), ImArray(N) ReArray = Real( ComplexArray ) ImArray = AImag( ComplexArray ) ! Or just Imag -- Intel's specific. end subroutine ComplexToReals
I hope it'll help.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page