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

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

[Octave-bug-tracker] [bug #51329] nth_element / median function fail wit


From: anonymous
Subject: [Octave-bug-tracker] [bug #51329] nth_element / median function fail with disable_range(true) (or with --traditional)
Date: Thu, 29 Jun 2017 10:56: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

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

Here is my build without the patch, as you requested. I misread sorry.


address@hidden:build/$ ./run-octave --no-gui
GNU Octave, version 4.3.0+
Copyright (C) 2016 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'.

octave:1> disable_range (true)
octave:2> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
error: nth_element: n must be a scalar or a contiguous range
octave:2> disable_range (false)
octave:3> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.362103 seconds.
octave:4> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.370985 seconds.
octave:5> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.369713 seconds.
octave:6> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.364895 seconds.



    _______________________________________________________

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]