Function computes the inverse of a matrix.
inv(mat, method = 1, tol = .Machine$double.eps, pseudo_on_fail = TRUE, ...)
mat | A matrix |
---|---|
method | Which method to use. 1 is Cholesky |
tol | The tolerance at which we should identify a singular value as zero (used in pseudoinverse calculation). |
pseudo_on_fail | If another method fails should the Moore-Penrose generalized inverse (pseudoinverse) be used? |
... | Not used. |
The inverse matrix