PDA

View Full Version : Inverse Matrix



reaktor24
05-23-2012, 06:34 AM
Hi

Simple question. How do you calculate the inverse of a matrix using C/C++ code? I have read lots of articles explaing in excruciating detail about the inverse matrix and how to work it out on paper by doing lots of divides to find the identity matrix and getting the inverse from that but how do you calculate this in code? Do you have to calculate for 4x4 matrices or can you just calculate the inverse of the 3x3 component of a 4x4 matrix??

Steve

Dan Bartlett
05-23-2012, 07:33 AM
http://stackoverflow.com/questions/1148309/inverting-a-4x4-matrix