any good matrix lib?

Discussion about everything. New games, 3d math, development tips...
Post Reply
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

any good matrix lib?

Post by REDDemon »

I'm searching for a zlib (or similiar licenses) licensed math library (c/c++ of course). That is able to perform matrices operations. For 4x4 Matrices I use irrlicht's CMatrix4. But now I need to work also with 3x3 and 5x5 matrices (multplying 2 matrices for combining them into 1 matrix, post and pre-multiply matrices by a vector).

Is there any good library or I have to write my own? i tried to search out without success.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

uBLAS in boost has a matrix class that works with different sizes. But I never worked with it myself, so I can't tell you anything about it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

Adding Boost's BLAS to my project make it a little bit "heavy"(has many advanced features i don't need.. it is a very good library). I found also a web site with more than 20 links to math libraries. But almost all of them are not OOP, are not clear in use or simply miss features that I need (not all of them can perform a Vector*Matrix operation)
or are not zlib/MIt/bsd licensed so using them can be problematic in opensource projects.

Final decision:
I will write my own starting from the irrlicht's "matrix4.h" as base model. :)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

REDDemon wrote:Adding Boost's BLAS to my project make it a little bit "heavy"(has many advanced features i don't need.. it is a very good library).
You know you can just separate it and use the parts only necessary for it to work?
Working on game: Marrbles (Currently stopped).
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

I don't know if boost's linear algebraic module was thinked for that. Maybe somewhere there is a piece of code that was taking as assumption that somewhere something is done etc.. it is much simpler writing a new library at this point since it will be exactly as I want. I 've almost finished it. Thanks for suggestion anyway :)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply