help-octave
[Top][All Lists]
Advanced

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

Re: comparison operators


From: John W. Eaton
Subject: Re: comparison operators
Date: Wed, 20 Mar 2002 11:36:08 -0600

On 20-Mar-2002, Douglas Eck <address@hidden> wrote:

| In any case, it's best to use find().

Actually, I think it is best to use boolean indexing.  Find introduces
another function call to slow things down and in Octave, only works
with vectors unless do_fortran_indexing is nonzero (which introduces
another set of problems).

The original ambiguity was stupidly copied from Matlab, and
prefer_zero_one_indexing was naively introduced in an attempt to solve
that problem.  Logical matrices and indexing avoids the problem, so
prefer_zero_one_indexing is no longer needed in Octave 2.1.x.

jwe



-------------------------------------------------------------
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]