Last data update: 2014.03.03

R: Inverse of a matrix
myinvR Documentation

Inverse of a matrix

Description

This function returns the inverse or generalized inverse of a matrix.

Usage

myinv(A, type = "solve")

Arguments

A

A matrix to be inverted.

type

Type of matrix inversion, set to "solve" (default) or "ginv" (which can be used in the case of computational singularity).

Value

The inverse of the given matrix A.

Results