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: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #45739] sort 'descend' together with vectors created with the colon operator
Date: Fri, 14 Aug 2015 02:54:10 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

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

Michael, you said that passing a range to sort() isn't sensible as the range
is already sorted.  The issue is when a function passes its input variable to
sort(), and that input happens to be a range.

I agree that fixing the constructor is the right approach.  If it has side
effects, they are likely to be beneficial (i.e., fixing other bugs).

Out of interest, should  fliplr  return a range if the input is a range?  That
should make it much faster, as Dieter points out.

    _______________________________________________________

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]