[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/
- [Octave-bug-tracker] [bug #36236] Boolean indexing not too prominent in the docs., Nicholas Jankowski, 2024/02/16
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #36236] Boolean indexing not too prominent in the docs.,
Nicholas Jankowski <=
Message not available
Message not available