Does anyone know a good Matrix library for C++?
I'm using MSVC++.NET.
I need to add, multiply and invert matrices.
Does anyone know a good Matrix library for C++?
I'm using MSVC++.NET.
I need to add, multiply and invert matrices.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
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.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.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
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).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.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
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.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
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).
Claus Hetzer
Compiler: Borland 5.5 (on Windows)
Solaris CC (on Unix)
Known Languages: C++, MATLAB, Perl, Java