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:44:56 -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 #20, bug #51329 (project octave):

With the exact patch as below #18.


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> tic, for i=1:1000, nth_element([1:10000], [500:501]); end, toc
Elapsed time is 0.361368 seconds.
octave:2> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.368876 seconds.
octave:3> tic, for i=1:1000, nth_element([1:10000], [500:501]); end, toc
Elapsed time is 0.361127 seconds.
octave:4> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.367194 seconds.
octave:5> no
nonzeros  normcdf   normest1  normpdf   not       
norm      normest   norminv   normrnd   now       
octave:5> ran
rand      randg     randn     randperm  rank      
rande     randi     randp     range     ranks     
octave:5> disable_range (true)
octave:6> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.36529 seconds.
octave:7> tic, for i=1:1000, nth_element([1:10000], [500:501]); end, toc
Elapsed time is 0.366324 seconds.
octave:8> tic, for i=1:1000, nth_element([1:10000], 500:501); end, toc
Elapsed time is 0.368926 seconds.
octave:9> tic, for i=1:1000, nth_element([1:10000], [500:501]); end, toc
Elapsed time is 0.367326 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]