Forums

fftshift

Started by Henrietta Denoue February 28, 2006
Hi

Need to do fftshift in 3 dimensions using fftw library
but can't find it. Does anyone know if there is a function
for this in the above library ?

Thanks in advance

H.

Henrietta Denoue wrote:
> Need to do fftshift in 3 dimensions using fftw library > but can't find it. Does anyone know if there is a function > for this in the above library ?
fftshift is a Matlab function; there is no such function in the FFTW library. Of course, it's not hard to write such a function (at least for even sizes), and see also question 3.10 in the FFTW FAQ (fftw.org/faq) for a different trick. Cordially, Steven G. Johnson
stevenj@alum.mit.edu wrote:
> Henrietta Denoue wrote: > >>Need to do fftshift in 3 dimensions using fftw library >>but can't find it. Does anyone know if there is a function >>for this in the above library ? > > > fftshift is a Matlab function; there is no such function in the FFTW > library. Of course, it's not hard to write such a function (at least > for even sizes), and see also question 3.10 in the FFTW FAQ > (fftw.org/faq) for a different trick. > > Cordially, > Steven G. Johnson >
Thanks a lot Steven. You saved me a lot of work. H.