[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61750] ismember does not report all matches
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #61750] ismember does not report all matches |
Date: |
Sun, 2 Jan 2022 07:37:58 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62 |
Update of bug #61750 (project octave):
Category: Octave Function => Documentation
Item Group: Incorrect Result => Documentation
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #7:
The behavior of `ismember` in MATLAB seems to have changed at some point in
the past (IIUC, for R2013a). See the 'legacy' option in MATLAB:
https://de.mathworks.com/help/matlab/ref/double.ismember.html#btcnv44-14
Octave doesn't have a 'legacy' option. IIUC, it doesn't implement the newer
ordering (so, no need [yet] for a 'legacy' option). But it does implement the
"legacy" ordering correctly.
If I understand this thread correctly, this is a documentation issue. Could
you please suggest wording that better describes the second output argument of
`ismember`?
The docstring currently says (followed by an example):
If a second output argument is requested then the index into s of each
matching element is also returned.
That sounds correct to me: It is kind of an index vector into `s`. But only
for the elements that are matching...
But maybe it can be made easier to understand.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61750>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Philip Nienhuis, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Nicholas Jankowski, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Nicholas Jankowski, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Nicholas Jankowski, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Liang Tang, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Nicholas Jankowski, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Arun Giridhar, 2022/01/01
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches,
Markus Mützel <=
- [Octave-bug-tracker] [bug #61750] ismember does not report all matches, Nicholas Jankowski, 2022/01/02
- [Octave-bug-tracker] [bug #61750] ismember follows matlab 'legacy' behavior, Nicholas Jankowski, 2022/01/02
- [Octave-bug-tracker] [bug #61750] ismember follows matlab 'legacy' behavior, Nicholas Jankowski, 2022/01/02
- [Octave-bug-tracker] [bug #61750] ismember follows matlab 'legacy' behavior, Markus Mützel, 2022/01/03