help-octave
[Top][All Lists]
Advanced

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

Re: simple vector to matrix transformation


From: Mike Miller
Subject: Re: simple vector to matrix transformation
Date: Tue, 22 Jun 1999 15:56:58 -0500 (CDT)

My earlier timing computations were not totally satisfactory, so here are
some more reliable answers:

octave:1> t0=cputime; for i=1:100, b=a*ones(1,1000); end, (cputime-t0)/100
ans = 0.10460
octave:2> t0=cputime; for i=1:100, b=a(:,ones(1,1000)); end, (cputime-t0)/100
ans = 0.36300
octave:3> t0=cputime; for i=1:100, b=a(1:1000,ones(1,1000)); end, 
(cputime-t0)/100
ans = 0.39550

Those answers are essentially means of 100 cputimes.  As you can see, the
answers are practically the same as the ones I presented originally.

Regards,

Mike

-- 
Michael B. Miller
University of Missouri--Columbia
http://taxa.psyc.missouri.edu/~mbmiller/



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

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