[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: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional |
Date: |
Wed, 28 Jun 2017 14:13:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #4, bug #51329 (project octave):
I can confirm nth_element does not work the way median calls it if
--traditional is used. Is that intentional?
nth_element (X, N, DIM)
N can also be a contiguous range, either ascending 'l:u' or descending
'u:-1:l', in which case a range of elements is returned
Matlab doesn't have an nth_element function, so why does calling with
--traditional change the error state?
normal octave:
>> nth_element(1:2,2,2)
ans = 2
>> nth_element(1:2,1:2,2)
ans =
1 2
octave with --traditional:
>> nth_element(1:2,2,2)
ans = 2
>> nth_element(1:2,1:2,2)
error: nth_element: n must be a scalar or a contiguous range
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51329>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, anonymous, 2017/06/27
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, Carnë Draug, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, Carnë Draug, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, anonymous, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, Avinoam Kalma, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, Nicholas Jankowski, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, Nicholas Jankowski, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, anonymous, 2017/06/28
- [Octave-bug-tracker] [bug #51329] Median fails due to nth_element in --traditional, Nicholas Jankowski, 2017/06/28
- [Octave-bug-tracker] [bug #51329] nth_element / median function fail with disable_range(true) (or with --traditional), Mike Miller, 2017/06/28
- [Octave-bug-tracker] [bug #51329] nth_element / median function fail with disable_range(true) (or with --traditional), anonymous, 2017/06/28
- [Octave-bug-tracker] [bug #51329] nth_element / median function fail with disable_range(true) (or with --traditional), anonymous, 2017/06/28
- [Octave-bug-tracker] [bug #51329] nth_element / median function fail with disable_range(true) (or with --traditional), Nicholas Jankowski, 2017/06/28
- [Octave-bug-tracker] [bug #51329] nth_element / median function fail with disable_range(true) (or with --traditional), Mike Miller, 2017/06/28