lib.utils.inv¶
- lib.utils.inv(mat, inv=<function inv>, check=True)¶
Return inverse of input 2D or 0D (scalar) array
mat.- Parameters
mat (2D array, scalar) – Input matrix to invert.
inv (callable, default=np.linalg.inv) – Function that takes in 2D array and returns its inverse.
check (bool, default=True) – If inversion inaccurate, raise a
LinAlgError(see_check_inv()).
- Returns
toret – Inverse of
mat.- Return type
2D array, scalar