Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > FFTW library
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 8552 of 8908
Post > Topic >>

FFTW library

by zhngbn <bin.zhngbn@[EMAIL PROTECTED] > Jul 26, 2008 at 02:24 PM

Hi, All:
    I have a 2 dimensional array, and I want to Fourier Transform in 1
dimension. Now what I am doing is looping the other dimension and call
the dfftw_plan_r2r_1d subroutine. Is there a better way to do this? OR
does FFTW provide any subroutine(parameter) to deal with this kind of
situation?

    Thanks a lot.
Bin


code:
====================================
program ft2d

implicit none
include 'fftw3.f'

integer :: i
integer, parameter :: dim1 = 256, dim2 = 256
double precision :: x(dim1, dim2), ftx(dim1, dim2)
integer*8 :: forwd

do i = 1, dim1
     call dfftw_plan_r2r_1d(forwd, dim2, x(i, :), ftx(i, :),
FFTW_RODFT00, FFTW_ESTIMATE)
     call dfftw_execute(forwd)
     call dfftw_destroy_plan(forwd)
enddo

end
 




 3 Posts in Topic:
FFTW library
zhngbn <bin.zhngbn@[EM  2008-07-26 14:24:59 
Re: FFTW library
"Steven G. Johnson&q  2008-07-28 08:53:34 
Re: FFTW library
"Steven G. Johnson&q  2008-07-28 09:09:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 9:25:05 CST 2008.