[Numpy-discussion] Does zero based indexing drive anyone else crazy?
Alan G Isaac
aisaac at american.edu
Sun Jul 2 23:27:59 CDT 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.
More information about the Numpy-discussion