Efficient 4x4 matrix inverse (affine transform)

Posted by Budric on Stack Overflow See other posts from Stack Overflow or by Budric
Published on 2010-04-12T18:33:50Z Indexed on 2010/04/12 21:03 UTC
Read the original article Hit count: 610

Filed under:
|
|

Hi, I was hoping someone can point out an efficient formula for 4x4 affine matrix transform. Currently my code uses cofactor expansion and it allocates a temporary array for each cofactor. It's easy to read, but it's slower than it should be.

Note, this isn't homework and I know how to work it out manually using 4x4 co-factor expansion, it's just a pain and not really an interesting problem for me. Also I've googled and came up with a few sites that give you the formula already (http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm). However this one could probably be optimized further by pre-computing some of the products. I'm sure someone came up with the "best" formula for this at one point or another?

Thanks.

© Stack Overflow or respective owner

Related posts about math

Related posts about linear-algebra