Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You might find some useful results at the bottom of this link</p> <p><a href="http://wiki.scipy.org/PerformancePython" rel="noreferrer">http://wiki.scipy.org/PerformancePython</a></p> <p>From the introduction,</p> <blockquote> <p>A comparison of weave with NumPy, Pyrex, Psyco, Fortran (77 and 90) and C++ for solving Laplace's equation.</p> </blockquote> <p>It also compares MATLAB and seems to show similar speeds to when using Python and <a href="http://en.wikipedia.org/wiki/NumPy" rel="noreferrer">NumPy</a>.</p> <p>Of course this is only a specific example, your application might be allow better or worse performance. There is no harm in running the same test on both and comparing.</p> <p>You can also compile NumPy with optimized libraries such as <a href="http://en.wikipedia.org/wiki/Automatically_Tuned_Linear_Algebra_Software" rel="noreferrer">ATLAS</a> which provides some <a href="http://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms" rel="noreferrer">BLAS</a>/<a href="http://en.wikipedia.org/wiki/LAPACK" rel="noreferrer">LAPACK</a> routines. These should be of comparable speed to MATLAB. </p> <p>I'm not sure if the NumPy downloads are already built against it, but I think ATLAS will tune libraries to your system if you compile NumPy,</p> <p><a href="http://www.scipy.org/Installing_SciPy/Windows" rel="noreferrer">http://www.scipy.org/Installing_SciPy/Windows</a></p> <p>The link has more details on what is required under the Windows platform.</p> <p>EDIT:</p> <p>If you want to find out what performs better, C or C++, it might be worth asking a new question. Although from the link above C++ has best performance. Other solutions are quite close too i.e. Pyrex, Python/Fortran (using f2py) and inline C++.</p> <p>The only matrix algebra under C++ I have ever done was using <a href="http://www.osl.iu.edu/research/mtl/" rel="noreferrer">MTL</a> and implementing an Extended Kalman Filter. I guess, though, in essence it depends on the libraries you are using LAPACK/BLAS and how well optimised it is. </p> <p>This link has a list of object-oriented numerical packages for many languages.</p> <p><a href="http://www.oonumerics.org/oon/" rel="noreferrer">http://www.oonumerics.org/oon/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload