Are you using -NDEBUG in your C++ compilation?.<br><br><br><div class="gmail_quote">On Jan 11, 2008 3:43 PM, nisha kannookadan &lt;<a href="mailto:nishak44@hotmail.com">nishak44@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi all<br><br>I wrote a program in C++ with Boost and have the same program in Matlab.<br>The C++ is much faster for lil matrices (n=32) and vectors until the size around 250000,<br>but for bigger ones the program is bit slower than Matlab.
<br>What I use in the program are ublas matrices, vectors<br>and some lil operations like solve, norm1, norm2, norm_inf and subrange<br>and subslice.<br>Can anybody tell me the reason, why Matlab get faster, the bigger the program gets?
<br>The program is huge, so I cant post it here.<br>Is there some general comparison between C++/Boost and<br>Matlab.<br><br>Thanks a lot<br><br>Nisha K<br><div class="WgoR0d"><br><br>_________________________________________________________________
<br>Express yourself instantly with MSN Messenger! Download today it&#39;s FREE!<br><a href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/" target="_blank">http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
</a><br>_______________________________________________<br>ublas mailing list<br><a href="mailto:ublas@lists.boost.org">ublas@lists.boost.org</a><br><a href="http://lists.boost.org/mailman/listinfo.cgi/ublas" target="_blank">
http://lists.boost.org/mailman/listinfo.cgi/ublas</a><br></div></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;/ &nbsp; &nbsp; . _ &nbsp;_ &nbsp;. &nbsp;Luis M. de la Cruz S. <br>( ( / / ( / ( / / &nbsp; DCI-DGSCA-UNAM<br> &nbsp; &nbsp; &nbsp; _/ _/ &nbsp; &nbsp; &nbsp; <a href="http://www.dci.dgsca.unam.mx/lmcs">
www.dci.dgsca.unam.mx/lmcs</a>