[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

index inconsistency?

From: John W. Eaton
Subject: index inconsistency?
Date: Tue, 17 Dec 2002 16:56:04 -0600

On 17-Dec-2002, Albert F. Niessner <address@hidden> wrote:

| Why does octave index matrices (vectors) from 1..m, 1..n and then the
| indexing in Matrix -- the C/C++ code for dynamic loaded functions --
| done from 0..m-1, 0..n-1?
| It really is not that big of deal. I was just wondering if anyone knows
| or remembers the rationale for doing it this way.

Matlab uses 1, so that was necessary for the scripting language to be
compatible.  C/C++ arrays are 0-based, so the C++ interface to
liboctave uses 0.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]