|
From: | Dieter Schmidt |
Subject: | [Octave-bug-tracker] [bug #45739] sort 'descend' together with vectors created with the colon operator |
Date: | Thu, 13 Aug 2015 22:13:50 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #12, bug #45739 (project octave): May this is useful: the elapsed time with 1)'sort + range' is significat lower than 2) 'sort + matrix' or 3)'fliplr': 1) >> clear all;tic();b=sort(1:3:1E8-1,'descend');toc() Elapsed time is 4.70318e-008 seconds. 2) >> clear all;tic();b=sort([1:3:1E8-1],'descend');toc() Elapsed time is 0.296795 seconds. 3) >> clear all;tic();b=fliplr(1:3:1E8-1);toc() Elapsed time is 0.239199 seconds. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45739> _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |