I just came across eigen, a C++ library for Matrices, Vectors and similar. It supports SSE (and others for other platforms) and does this on the fly, with lots of template magic. I currently don't need anything like this, but it's quite interesting reading its documentation: Quite amazing what's going on beneath. It has the same problem as all heavily template based libraries, it's source is incredible complicated and difficult to comprehend if you are not willing to sacrifice a lot of time for this, but still very interesting. If you are looking for a math library, probably worth a look.

two comments, already:

There is another similar library – cml: http://cmldev.net/
martinsm - 19 10 11 - 15:15

Hi Niko,
It’s really interesting if you want to test your own maths function against it. But, even using SSE, it’s not made to help game programers, its goal is accuracy not speed.
I tested it against my own SSE implementation (using only 4×4 matrices and 4D vectors) an my implementation is 12x faster !
Eigen uses templates to support matrices of any size, its concept is great and easy to use but it doesn’t worth the use in a game project.
Dog - 25 10 11 - 15:29

Displayed name:  
Remember personal info?
Website (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile


Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.