Generalized Inverse of a Matrix

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

ginv(X, tol = sqrt(.Machine$double.eps))

Arguments

X

Matrix for which the Moore-Penrose inverse is required.

tol

A relative tolerance to detect zero singular values.

Value

A MP generalized inverse matrix for X.