If you are writing something involving the math between vectors in C/C++, you may want to check out Vlfeat (http://vlfeat.org). ...  Read more