Page 2 of 2

Re: Matrices

Posted: Tue 28 Jul, 2009 2:24 am
by toml_12953
benryves wrote:I don't suppose you have any recommendations or suggestions for an algorithm that could be used to calculate the inversion of a matrix?

Thanks for all of your help and suggestions! :)
How much stack space do you have? There are recursive routines that don't take much code but do take quite a bit of stack during the multiple recursions. Here's a step-by-step non-recursive algorithm for the simplest one I've found:

http://mjollnir.com/matrix/part1.html