Does anyone know a good Matrix library for C++?
I'm using MSVC++.NET.
I need to add, multiply and invert matrices.
Printable View
Does anyone know a good Matrix library for C++?
I'm using MSVC++.NET.
I need to add, multiply and invert matrices.
Seriously, it is pretty easy to create your own library. It is especially easy since you only need 3 distinct operations. Why don't you try to create the library yourself, then if you have any problems ask and I can help you. I think in the long run you will learn more if you do it yourself ;) Or someone else will post their library on here. Also there are thousands for free download online just look.Quote:
Originally posted by Sang-drax
Does anyone know a good Matrix library for C++?
I'm using MSVC++.NET.
I need to add, multiply and invert matrices.
Try www.planet-source-code.com
I made my own awhile back... it's still sitting around here somewheres, albeit incomplete (without inverse functionality)
Just put lots of 1's and 0's... :P
I'll be studying linear mathematics this autumn, but IIRC it is quite complicated to invert a matrix (I don't know how it's done.. yet).Quote:
Originally posted by MrWizard
Seriously, it is pretty easy to create your own library. It is especially easy since you only need 3 distinct operations.
Because of this, I thought it easier not to reinvent the wheel and use someone else's code.
BTW, I have now found a library that suits my needs.
Just be careful. With C++ matricies are row major, but with some libraries, i.e opengl, they are column major. So [0][3] in opengl is actually [3][0] in C++
Heh, I noticed that. Caused me some trouble.
I'm partial to the one at:
http://www.techsoftpl.com/matrix/index.htm
I use the shareware version as its sufficient for my needs, and contains all of the source code in the header file (for learning purposes).