Quote:
Originally posted by Sang-drax
I know how to invert matrices using pen and paper. I use someone else's code in C++ when I have to invert matrices in my programs.
I don't know what the most efficient algorithm would look like (perhaps a contest).
Yes, I applied the same exact method in my matrix class to calculate inverses. I have a function which performs forward elimination and one that performs backwards elimination. It works well, I think, but it's only benefits are for when you are calculating the inverse of an nxn sized matrix. Seperate algorithms based on the size of the matrix could be made for faster calculations.