[clean-list] FFT and Clean

Brett Morgan brett@pulse.itd.uts.edu.au
Mon, 27 Aug 2001 12:17:42 +1000


On Mon, Aug 27, 2001 at 01:54:11PM +1200, Richard A. O'Keefe didst scribe:
> Siegfried Gonzi <siegfried.gonzi@kfunigraz.ac.at> wrote:
> 	- You should be aware that the Numerical Recipes C code is using
> 	one-offset (as Fortran) and not zero-offset. This is
> 	also accounted for when you pass the vector to the fft subroutine, then
> 	you have to pass it with pointer beeing
> 	decremented by 1. Completely mad.
> 	
> It is also completely illegal in C.  In C you may form a pointer to
> any element of an array, and also to the non-existent element just past
> the end of the array (although that pointer may not be dereferenced).
> It has never been legal in C to form a pointer that points _before_ an array.

I never thought that legality was a strong part of the c programmers ethic. More
of a case of "what ever gets past the compiler". Heh. ;)

brett

-- 
email: Brett.Morgan@uts.edu.au
phone: 0416-241-898
magic: 153 2 8 105 225

In 1962, you could buy a pair of SHARKSKIN SLACKS, with a "Continental
Belt," for $10.99!!

To a Lisp hacker, XML is S-expressions in drag.