[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arra
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays |
Date: |
Mon, 10 Jul 2017 12:59:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Follow-up Comment #4, bug #51412 (project octave):
Documentation for Matlab's behavior is at
http://www.mathworks.com/help/matlab/ref/strcmp.html.
Mixed char matrix / cellstr comparisons are tricky. In bug #51187 I had to
change the ismember functionality specifically for Matlab compatibility
The do_strcmp_fun function is in libinterp/corefcn/strfns.cc. I see that
there are several cases to handle broadcasting correctly. For example, when
doing
strcmp ("b", {"a", "b", "c", "d"})
I have to rebuild Octave with debugging features in order to test what is
going on, but it may be an obvious extra case in the if/else tree needs to be
added to handle this.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51412>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Guillaume, 2017/07/07
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Mike Miller, 2017/07/07
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Guillaume, 2017/07/10
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Mike Miller, 2017/07/10
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays,
Rik <=
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Mike Miller, 2017/07/10
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Rik, 2017/07/10
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Rik, 2017/07/10
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Ceral Paquet, 2017/07/11
- [Octave-bug-tracker] [bug #51412] strcmp with multidimensional char arrays, Rik, 2017/07/11