thesiswriter has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm trying to invert a matrix with dimension 6x6 and I can't find out how! Can anyone help???? Thanks!

Replies are listed 'Best First'.
Re: invert martix
by abstracts (Hermit) on Apr 26, 2002 at 07:43 UTC
    Take a look at Math::Matrix for solving a set of linear equations. You may also look at PDL for doing more exotic matlab like functions.
Re: invert martix
by thor (Priest) on Apr 27, 2002 at 02:29 UTC
    It's been a while since college, but unless somebody specifically asked you to invert the matrix, you don't want to do it. If you're trying to solve a linear set of equations, Gaussian elimination is your best bet. If I remember correctly, Gaussian elimination solves a system in O(n^2), whereas inverting a matrix is O(n^3). So, unless you need to solve a lot of linear equations with the same matrix, but a different right hand side, "go with Gauss".