grss.libgrss.matrix_inverse#
- grss.libgrss.matrix_inverse(mat: list[list[float]], tol: float = 1e-16) list[list[float]] #
Calculate the inverse of a matrix using LU decomposition.
- Parameters:
mat (list of list of real) – Matrix to invert.
tol (real, optional) – Tolerance for the matrix inversion, by default 1.0e-16L.
- Returns:
invMat – Inverse of the matrix.
- Return type:
list of list of real