Learn R Programming

PopED (version 0.3.2)

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

mat

A matrix

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.

Value

The inverse matrix