[Gretl-devel] array indexing
Allin Cottrell
cottrell at wfu.edu
Mon Aug 21 23:50:42 EDT 2006
I recently made some changes so that array indexing in the
context of the "restrict" command starts at 1 in all cases
(previously there was a mixture of 0-base and 1-base).
Working again with matrices lately, I recall that gretl matrices
also use 1-based indexation. So we're consistent.
But is this "right"? Would we be better to standardize on
0-based indexing in all cases? My initial thought was that
1-base is more intuitive for the "punters", but I have to say it
seems odd for matrices. Ox uses 0-base; does R do that too?
Allin.
More information about the Gretl-devel
mailing list