Input requested on Linear Algebra package feature...

Pasha Murat (murat@cdfsga.fnal.gov)
Fri, 14 Nov 1997 15:40:26 GMT


Fons Rademakers writes:
> There is one fundamental point on which I would like to get input.
> The question is:
> Should matrices and vectors by default range from
> 0 - n-1 (like arrays in C/C++)
> or
> 1 - n (like in math and Fortran)

Hello,

I've tried both notations for a while. Finally I came to a conclusion that
for matrices and vectors (which unlike arrays are purely math concepts)
it is more reasonable to preserve default math (1:n) indexing.

On the other hand for arrays, which give us an example of internal language
type, is also natural to use default indexing scheme for this
language (0:n-1 for C/C++, 1:n for FORTRAN).

Regards, Pasha