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

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

[Octave-bug-tracker] [bug #45739] sort 'descend' together with vectors c


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #45739] sort 'descend' together with vectors created with the colon operator
Date: Fri, 14 Aug 2015 08:55:45 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2478.0 Safari/537.36

Follow-up Comment #14, bug #45739 (project octave):

Lachlan: I did not mean that are never cases where applying 
sort to a range would be appropriate. The fact that it took
this long for this bug to be noticed suggests that it tends
only to happen in exceptional cases. In any case it
should work correctly. Rik has written a patch
(two actually) which does this. And, range should
always, I think that everyone agrees, set the upper limit
as the last generated range value, not the last input.

Also, sort does return a range if the input is range.
But, fliplr does not. It does preserve the type in other
cases and I am quite sure that it will be agreed
that this is an error.

Please report any other anomalies in this area. Type range
seems not to be widely used, but it can be very effective.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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