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: Tue, 27 Jun 2017 16:51:53 -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

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

                 Summary: Median fails due to nth_element in --traditional
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 27 Jun 2017 08:51:52 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Brad Kennedy
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

We use Octave on clusters with mostly converted MatLab code that uses the
--traditional flag when we start a script. We ran into this bug after
switching from 3.8.2 to 4.2.1. It ONLY happens with --traditional, but we
think we need that flag for the time being.

It fails due to the underlying call to nth_element which also only fails under
--traditional

 nth_element([1,2], 1:2)



address@hidden:~/$ \octave --traditional --no-gui
GNU Octave, version 4.2.1
Copyright (C) 2017 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

>> median(1:2)
error: nth_element: n must be a scalar or a contiguous range
error: called from
    median at line 86 column 12
>> 





    _______________________________________________________

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]