inv: Compute the inverse of a matrix
Description
Function computes the inverse of a matrix.
Usage
inv(mat, method = 1, tol = .Machine$double.eps)
Arguments
method
Which method to use. 1 is cholesky, 2 is using solve and 3 is the Moore-Penrose generalized inverse.
tol
The tolerance at wich we should identify a sigular value as zero.