Learn R Programming

far (version 0.6-3)

invgen: Generalized inverse of a Matrix

Description

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

Usage

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

Run this code
mat1<-matrix(rnorm(100),ncol=10)
  print(invgen(mat1))

Run the code above in your browser using DataLab