开发者

I'm looking for a C library that is able to compute 4x4 and 3x3 matrix math

Does anyone know a good one? I'm looking for multiplication of matrices, transpose, i开发者_运维问答nvert, converting from 4x4 to top left corner 3x3 etc.


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.


Try BLAS or LAPACK.


Intel's Math Kernel or Numerical Receipes in C by Press, Flannery, Teukolsky and Vetterling

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜