mat_inv
mat_inv.Rd
Return the inverse of a square matrix when solve() cannot.
Arguments
- mat
A square numeric matrix without NULL, NA, Inf or single case (dimension 1, 1) of 0.
- safer_check
Single logical value. Perform some "safer" checks (see https://github.com/safer-r)? If TRUE, checkings are performed before main code running: 1) R classical operators (like "<-") not overwritten by another package because of the R scope and 2) required functions and related packages effectively present in local R lybraries. Set to FALSE if this fonction is used inside another "safer" function to avoid pointless multiple checkings.
See also
ginv
, pinv
which can calculates the Moore-Penrose generalized inverse of a matrix X.