Hi Stéphane,<div><br></div><div>Maybe you could try to use external routines (C/FORTRAN) and link them to Scilab with dynamic_link. They turn calculations much faster!</div><div><br></div><div>Regards,<br><br><div class="gmail_quote">

On Tue, Feb 12, 2013 at 2:10 PM, Stéphane Bécu <span dir="ltr"><<a href="mailto:stephane.becu@maya-technologies.com" target="_blank">stephane.becu@maya-technologies.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div><font color="#000000" face="Arial">Hello,</font></div>
<div><font face="Arial"></font> </div>
<div><font face="Arial">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.</font></div>


<div><font face="Arial"></font> </div>
<div><font face="Arial">There must be a way to vectorize the problem but I do not see how ?</font></div>
<div> </div>
<div><font face="Arial">Thanks in advance,</font></div><span class="HOEnZb"><font color="#888888">
<div><font face="Arial"></font> </div>
<div><font face="Arial">Stéphane</font></div></font></span></div><br>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Eduardo Torrecillas<br>AER-09
</div>