POV-Ray : Newsgroups : povray.binaries.images : 2D Fourier Transform : Re: 2D Fourier Transform Server Time
7 Nov 2024 02:27:26 EST (-0500)
  Re: 2D Fourier Transform  
From: clipka
Date: 6 Mar 2017 13:17:20
Message: <58bda7b0$1@news.povray.org>
Am 06.03.2017 um 14:05 schrieb Bald Eagle:

> Paul Bourke's source code uses "bitwise right shift" - and I don't see any
> equivalent to that currently available in SDL.
> Am I wrong in thinking that a bitwise right shift is just a numerical division
> by 2?

Provided you're talking about /integer/ division by 2 (i.e. division
followed by rounding), you're perfectly right.


> I had some problems with variables in my loops - is there a limit to how many
> times a variable name can be used in nested loops / includes / macros / etc?

None that I'd be aware of.


> I kept getting a "cannot assign uninitialized identifier" error when using
> #local, and then "cannot pass uninitialized identifier to LValue (whatever that
> is)" when using #declare.

"LValue" is a moniker for "a thing you can assign values to" --
shorthand for "left-hand value", alluding to the left-hand side of an
assignment.


> I (sort of) fixed it - but I only needed to recode about half of the instances
> of this to get the full code to work - the latter half using #local works just
> fine.
> Very strange.
> I will post code later to illustrate.

Please do; I can only think that you were doing something wrong without
noticing.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.