octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36236] Boolean indexing not too prominent in


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #36236] Boolean indexing not too prominent in the docs.
Date: Fri, 16 Feb 2024 17:18:08 -0500 (EST)

Follow-up Comment #9, bug#36236 (group octave):

nevermind. I just checked the behavior with matlab and all of the results
match.  smaller indexes map to linear order, and larger ones do the same with
an error if any true positions are beyond numel(x).

e.g.,:


>> lmap = [true, true, false; true, true, true; false true true]

lmap =

  3×3 logical array

   1   1   0
   1   1   1
   0   1   1

>> a(lmap)
The logical indices contain a true value outside of the array bounds.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?36236>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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