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

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

[Octave-bug-tracker] [bug #54599] issorted yields an error for the empty


From: Grzegorz
Subject: [Octave-bug-tracker] [bug #54599] issorted yields an error for the empty vector
Date: Thu, 30 Aug 2018 12:36:20 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #1, bug #54599 (project octave):

Please excuse me, there was a typo in the markup in the original submission
that messed up the post. Here I submit again:

Input:

issorted([])


Output:

error: issorted: needs a vector


It appears to me as "an error message for valid input", so I figure it is a
bug. I would expect the result to be TRUE, as in Matlab. Even if Octave had
reasons to depart from the latter convention, I would expect issorted to
accept the empty vector.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54599>

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




reply via email to

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