Documentation

HexRowReduce.Inverse

def Hex.Matrix.inverse? {F : Type u} [Lean.Grind.Field F] [DecidableEq F] {n : Nat} (A : Matrix F n n) :
Option (Matrix F n n)

Invert a square matrix by reducing its coefficient block and accumulating the same row operations on the identity. Failure means singularity.

Equations
Instances For

    Inversion succeeds exactly at full rank.

    Inversion fails exactly when the matrix is rank deficient.

    theorem Hex.Matrix.inverse?_spec {F : Type u} [Lean.Grind.Field F] [DecidableEq F] {n : Nat} (A B : Matrix F n n) :

    The returned matrix is a two-sided inverse.

    The empty matrix has the empty identity as its inverse.