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

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

[Octave-bug-tracker] [bug #31512] Problem with code on Linux octave 3.2.


From: kody law
Subject: [Octave-bug-tracker] [bug #31512] Problem with code on Linux octave 3.2.3 and 3.2.4/// OK on mac w/ 3.2.3
Date: Fri, 19 Nov 2010 22:47:53 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

Follow-up Comment #17, bug #31512 (project octave):

I was going to start a new thread, but apparently I am no longer authorized
to submit to this group .... if anyone knows how to be readmitted, I would
appreciate it.

So, the new peculiarity is attached.  Any suggestions about how to speed it
up would be greatly appreciated.  Thanks a lot for all your help!

A takes about 2.5 seconds on matlab, while B takes 2 seconds.  On octave the
difference is more than an order of magnitude!

%%%% when A is uncommented and B is commented, 
%%%% the routine takes 40 secs!

%%%% when B is uncommented and A is commented, 
%%%% the routine takes 2 secs!

%%%% each time, the program sorts a permutation into
%%%% cycles, going through each element.  'lens' lists 
%%%% the number of elements in permutations of each length

%%%% longer permutations = 
%%%% fewer entries into while loop =
%%%% faster -- too much faster!

Thanks again, best


(file #22063)
    _______________________________________________________

Additional Item Attachment:

File name: per.tar                        Size:103 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31512>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]