Re: FFTW: a problem with in-place 2D r2c transform



Thanks a lot for your kind reply, Steven. I feel very flattered to be
answered by the author himself, and even more confused to continue asking
my dumb questions, but:
1) I read this part of the manual. I didn't realize that allocating more
than is needed was a mistake.
2) I've changed the array sizes to the exact values in your reply. I still
get zero-frequency of 351 for in-place, and 432 for out-of-place.
What am I doing wrong??

Thanks again

The array format for r2c transforms is described in detail at:


http://www.fftw.org/doc/Multi_002dDimensional-DFTs-of-Real-Data.html

In particular, note that

1) the output is n[0] * (n[1]/2 + 1) in size, not n[0]*n[1]

2) the input is n[0] * n[1] in size for out-of-place and n[0] * 2 *
(n[1]/2+1) in size for in-place, where the latter reflects padding to
make room for the complex output.

This is all described in the manual.

Cordially,
Steven G. Johnson




.



Relevant Pages

  • Re: wanted creature from the black lagoon translite
    ... unintentional, but it was *my* mistake, and I owned up to it. ... Yet, this pest-like idiot *continued* to exhibit the same, exact ... If that means that I've "run him off from the newsgroup," as you pretty ... *any* of them, besides you, defending this guy? ...
    (rec.games.pinball)
  • Re: For James A. Chappells wife only, private
    ... be accused of is making a mistake. ... he's attempted to post the exact same ... insults to my web site from the same computer he's using ... This is Monkey Wrench calling Bunny Hutch Headquarters... ...
    (rec.arts.marching.drumcorps)
  • Re: Prevent data entry if another field contains data
    ... My one line of code accomplishes the exact same thing as your 5 lines of ... mistake was made, for instance) having that data deleted. ... On the chance that your user has already entered data in txt_FieldB before ...
    (microsoft.public.access.formscoding)
  • Re: Best Buy bait & switch
    ... I invite you to do the exact same thing I ... Read the stories, then continue shopping there when you find the best ... They made a mistake. ... compensate the customer. ...
    (misc.consumers)

Loading