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

From: Christoph Borgmeier (borg@mail.desy.de)
Date: Fri Nov 14 1997 - 15:53:57 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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET