invgen: Generalized inverse of a Matrix

Description

Calculates the Moore-Penrose generalized inverse of a matrix X.

Usage

1
invgen(a, tol)

Arguments

a

Matrix for which the Moore-Penrose inverse is required.

tol

A relative tolerance to detect zero singular values.

Value

A Moore-Penrose generalized inverse matrix for X.

See Also

solve,svd,eigen

Examples

1
2
  mat1<-matrix(rnorm(100),ncol=10)
  print(invgen(mat1))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.