inverse ( matrix -- matrix )


Vocabulary
math.matrices.elimination

Inputs
matrixa sequence


Outputs
matrixa sequence


Word description
Computes the multiplicative inverse of a matrix. Assuming the matrix is invertible.

Examples
A matrix multiplied by its inverse is the identity matrix.
USING: kernel math.matrices prettyprint ; FROM: math.matrices.elimination => inverse ; { { 3 4 } { 7 9 } } dup inverse mdot 2 <identity-matrix> = .
t


Definition