help-octave
[Top][All Lists]
Advanced

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

Re: octave vectorization


From: PetrSt
Subject: Re: octave vectorization
Date: Mon, 25 Mar 2013 06:51:48 -0700 (PDT)

In the attached file is a suggestion for vectorization. It's definitely not
perfect, however, cputime of for-loop was in between 0.14-0.16 sec and the
one of vectorized form was 0.0.
Conversion between subscripts and linear indices is done directly in the
script, because I'm not sure how to use "sub2ind" function for matrices.
test_vecimg.m
<http://octave.1599824.n4.nabble.com/file/n4651195/test_vecimg.m>  



--
View this message in context: 
http://octave.1599824.n4.nabble.com/octave-vectorization-tp4651161p4651195.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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