Ask HN: Good C++ Numerical Libraries
I'm starting my MSFE program this fall. Since C++ is heavily used on Wall Street, I have decided to take this summer to build a significant numerical library for financial related applications. Right now I am working with Quantlib and GSL to see how numerical routines are coded in C-style languages, but I am hoping to see a much broader code base as my project develops. I've come across several other numerical libraries, but I'm really not capable of judging yet what is considered to be a good library. I was hoping HN could point me to some well-constructed numerical libraries, hopefully coded in C++. I'll share my code when I get a significant amount of work done.
I thank any posters ahead of time.
13 comments
[ 5.2 ms ] story [ 41.6 ms ] threadAlso, __the__ templates books is very useful for several tricks for squeezing performance: http://www.josuttis.com/tmplbook/
HTH
Also, I can't recommend "Numerical Recipies in C++" enough. This is a great book if you're not a wizard already, although the seriously good numerical mathematicians complain that it doesn't necessarily show you the absolute best way to do everthing. Its a great learning and example-code resource though! http://www.amazon.com/Numerical-Recipes-C-Scientific-Computi...
I recently did a fair bit of work with matrix computations, for example, and while "Numerical Recipies" and "Matrix Computations" were both useful for background material, the technical notes that go with LAPACK were often far more up-to-date (and a source of the latest research papers behind the LAPACK implementations as well).
http://www.nuclearphynance.com
There you can read a lot about implementing numerical software in the "real world". My perception is that C# is starting to take C++'s place. But, then, it's just a perception. Moreover, take a look at LAPACK, LAPACK++, BLAS, and the like...
A good C++ library for high performance computing is going to be more than just C-style functions wrapped in a class. Read the paper on Expression Templates by Todd Veldhuizen: http://ubiety.uwaterloo.ca/~tveldhui/papers/Expression-Templ...
Scribd: http://www.scribd.com/doc/15194614/MATLAB-C-Libraries