in reply to Help On Inverese Matrix

This is not the answer you are looking for, but an alternative module for dealing with matrices is the Perl Data Language. The module PDL::Slatec has a function called matinv , which is gives the inverse of a square matrix like so, ($inv) = matinv($mat) (pretty much stolen from the docs)

You will probably lose a little time installing and learning how to form the matrix, but if you are regularly involved in Numerical Funny Business, it might be worth it in the long run. The web page is http://pdl.perl.org/ which will explain the module and lead you to a low traffic mailing list with lotsa helpful people.

Replies are listed 'Best First'.
Re^2: Help On Inverse Matrix
by etj (Priest) on Jul 08, 2022 at 19:12 UTC
    PDL::Slatec uses bundled parts of LINPACK and some of BLAS. To use the more up-to-date LAPACK with PDL, I don't think there's a better option than Greg Vanuxem's PDL::LinearAlgebra, which has an excellent PDL-ish (and in fact quite MATLAB-reminiscent) wrapping interface.