Re: Input requested on Linear Algebra package feature...

Christoph Borgmeier (borg@mail.desy.de)
Fri, 14 Nov 1997 15:53:57 +0100 (MET)


On Fri, 14 Nov 1997, Fons Rademakers wrote:

[...]
> 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 Fons,

I'd prefer C/C++ style.

Compare e.g.:

for( int i=0; i<n; i++ ) { ... }

with

for( int i=1; i<=n; i++ ) { ... }

The latter looks really strange, doesn't it?

Cheers,
Christoph