invertMatrix

HC Arithmetic Numeric Operations invertMatrix
cross transposematrix

invertedMatrix invertMatrix inputMatrix


outputs the invertedMatrix of the inputMatrix. If the determinant is zero an error is thrown. There are internal special cases for d=1x1,2x2,3x3 so then the runtime is optimal.

inputMatrix: array n of array n. The inner arrays are the column vectors.

Example:

invertMatrix {{1 0 1}{2 1 2}{3 2 1}}
{	{1.5 -1 0.5}
	{-2 1 0}
	{-0.5 1 -0.5}
}  ;-)

Reference:

cross transposematrix