Does anyone know a good one? I'm looking for multiplication of matrices, transpose, invert, converting from 4x4 to top left corner 3x3 etc.
views:
81answers:
3most of the time it will be overkill to include those...
YeenFei
2010-09-20 09:30:48
Yes. But why not implement the needed functionality then? Intel's Math Kernel, that Mark suggested is an overkill as well. The thing is that when someone makes a library that does basic things like this, they will make it huge.
Tamás Szelei
2010-09-20 09:45:45
It's not overkill at all to link to such libraries or to the Intel MKL. Use dynamic linking.
High Performance Mark
2010-09-20 10:46:00
Problem with BLAS is that it seems very undeveloped towards modern projects. Namely, CBLAS doesn't seem to compile easily on mingw and it has no msvc project files or other multiplatform means (such as cmake). The work-time needed to support something like that would probably be better suited to just write the 4 or 5 functions needed.
Lela Dax
2010-09-20 14:31:18
@High Performance Mark, how does "dynamic" linking to such gigantic library not an overkill for small projects ? or actually you are referring to static-linking them ?
YeenFei
2010-09-21 02:58:25
A:
Mark
2010-09-20 09:30:10
+1
A:
Like you say, rolling your own is easy enough. The inverse is tricky to get efficient unless you read this:
http://www.geometrictools.com/Documentation/LaplaceExpansionTheorem.pdf
I could send you my code, but it's a 4x4-only c++ class and does not take that paper into account yet, among other things that probably don't fit your needs.
phkahler
2010-09-20 15:37:00
I'll accept it not because it's perfect for my needs but because it's quite hard to find a C library that is easy to use in modern multiplatform environments. GLM may be good for the OpenGL application I had in mind but it's C++ with no C interface. The work needed to support all these might be better suited to write the 5-10 functions needed (though it'd be nice if a convenient library would prevent the need). [The Inverse is indeed tricky]
Lela Dax
2010-09-21 09:03:34