[Scilab-users] Vectorization

Stéphane Bécu stephane.becu at maya-technologies.com
Tue Feb 12 17:10:25 CET 2013


Hello,
 
I have much difficulty to optimize my calculation. It consists of calculating the variance of a vector over last N elements . See the example in the attached file for a 3D matrix. With a PC under windows 7 and scilab 5.3, it needs 40 sec to calculate the variance for a 10*10*1000 matrix. This is too much long since I have much bigger files to work on.
 
There must be a way to vectorize the problem but I do not see how ?
 
Thanks in advance,
 
Stéphane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130212/d2d4276c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script.sce
Type: application/octet-stream
Size: 696 bytes
Desc: script.sce
URL: <https://lists.scilab.org/pipermail/users/attachments/20130212/d2d4276c/attachment.obj>


More information about the users mailing list