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

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

[Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --t


From: anonymous
Subject: [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional
Date: Wed, 28 Jun 2017 15:36:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Follow-up Comment #8, bug #51329 (project octave):

@Nicholas Jankowski

As in this comment, allowing nth_element to accept range valid vectors fixes
this. 

https://savannah.gnu.org/bugs/?51329#comment3

With my patch:


>> nth_element([1:2], [1, 3])
error: nth_element: n must be a scalar or a contiguous range
>> nth_element([1:2], [1, 2])
ans =

        1        2




- OP

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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