Learn R Programming

far (version 0.6-7)

invgen: Generalized inverse of a Matrix

Description

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

Usage

invgen(a, tol)

Value

A Moore-Penrose generalized inverse matrix for X.

Arguments

a

Matrix for which the Moore-Penrose inverse is required.

tol

A relative tolerance to detect zero singular values.

See Also

Examples

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

Run the code above in your browser using DataLab