[Numpy-discussion] Does zero based indexing drive anyone else crazy?
Alan G Isaac
aisaac at american.edu
Mon Jul 3 00:27:59 EDT 2006
On Sun, 2 Jul 2006, Webb Sprague apparently wrote:
> I have spent a huge amount of my time fixing and bending
> my head around off-by-one errors caused by trying to index
> matrices using 0 to n-1.
I come from GAUSS so I am symphathetic, but in the end
zero-based indexing is usually great.
Anyway, ideally you will rely on vector/matrix operations
rather than constantly tracking indices.
fwiw,
Alan
More information about the NumPy-Discussion
mailing list