[Top][All Lists]

[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

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

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:


  Message sent via/by Savannah

reply via email to

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