octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave "Most Wanted" feature


From: Przemek Klosowski
Subject: Re: octave "Most Wanted" feature
Date: Tue, 28 Nov 2006 16:47:31 -0500 (EST)

   >    > octave_index_origin (-256);

   Er, no. There are two choices, 0 and 1. There are no other choices. 

One interesting application of an offset that is neither 0 nor 1 is
used for memory allocation in Numerical Recipes. For example, they
allocate a 128-element vector and then subtract 128 from the
allocation pointer 'v', to access v(129..256). Ugly hack, but it
simplifies array offset expressions sometimes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]