help-octave
[Top][All Lists]
Advanced

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

Re: matrix sizes


From: Paul Kienzle
Subject: Re: matrix sizes
Date: Wed, 15 Sep 2004 22:51:35 -0400


On Sep 15, 2004, at 9:28 PM, John W. Eaton wrote:

On 15-Sep-2004, Paul Kienzle <address@hidden> wrote:

| I would however recommend using the following in config.h so that
| the all of the code isn't shouting at us:
|
|       typedef OCTAVE_IDX_T octave_idx_t;

That's fine (I said "something like" :-) though I think identifiers
with _t suffixes are reserved.


Here's a page from the libc manual confirming this:

        http://www.cosy.sbg.ac.at/~gwesp/c/glibc/libc_11.html

The only strict requirement is that it be something unique that we can
perhaps later replace with a global string replace command.

idx?  A vector of indices is an idx_vector, so a singleton must be
an idx. Seems too short and likely to conflict with user variable names.

octave_idx? Seems good.  We index octave_values with octave_idx.

Index?  Also good.  We index ArrayN<T> values with Index.  Since Index
is fundamental to the Array class and the rest of the class doesn't use the
octave_ ``namespace'', this would be my choice.  It seems a bit generic
though.

- Paul



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

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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