5 ms·
I think numpy and scipy[1] beg to differ. You should go look at what's actually available in terms of scientific computing on Python, as I think you might actua
by rpcope1 11y ago
I think numpy and scipy[1] beg to differ. You should go look at what's actually available in terms of scientific computing on Python, as I think you might actually learn something (hint: numpy is really a bunch of Python wrappers over FORTRAN routines, if you look at the source code). Having been a PhD student in Physics, in particular (at an Ivy League university, nonetheless), I can tell you that the majority of new code we were writing was Python, and since I've left, it's probably gotten more so. A good example of Python in physics, is PyMCA[2]. Python is really poised to also (thank god) reduce the marketshare of Matlab.
[1] http://docs.scipy.org/doc/numpy-dev/f2py/getting-started.html http://docs.scipy.org/doc/numpy-dev/f2py/getting-started.htm...
[2] http://pymca.sourceforge.net/ http://pymca.sourceforge.net/
Also:
http://www.quora.com/How-did-Python-dominate-scientific-computing http://www.quora.com/How-did-Python-dominate-scientific-comp...
http://programmers.stackexchange.com/questions/138643/why-is-python-used-for-high-performance-scientific-computing-but-ruby-isnt http://programmers.stackexchange.com/questions/138643/why-is...
Finally as a Physics person, you might also like the coursework for this (I certainly enjoyed the course):
http://pages.physics.cornell.edu/~myers/teaching/ComputationalMethods/ http://pages.physics.cornell.edu/~myers/teaching/Computation...
- saintdako 11y agoanother thing to consider is f2py, which allows calls to Fortran subroutines from Python. in my experience, it was faster than numpy, but you have to suffer from writing Fortran.
- Lofkin 11y agoJust use numba and get fortran like performance by writing in python.
- saintdako 11y agoI got inconsistent results when using Numba. when it worked well, it was way faster than Numpy, but sometimes it was slower. I wasn't able to figure out how to do AOT compilation, so I just went with f2py. if Numba has AOT compilation, I'd definitely use that over f2py though.
- Lofkin 11y agoAOT compilation is in the works. Also you might have been using features that numba didn't support yet. They just added more numpy ops, array allocation and vector ops, so your code might be working now.
- saintdako 11y agoI am no longer working on the project (it was part of a 4-month research project), but I'll make sure to tell my supervisor. thanks! :D