Handy math stuff in C++, mostly using uBLAS