Learn R Programming

VCA (version 1.5.1)

MPinv: Moore-Penrose Generalized Inverse of a Matrix

Description

This function is originally impelemented in package 'MASS' as function ginv. It was adapted to be able to deal with matrices from the 'Matrix' package, e.g. sparse matrices.

Usage

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

Value

(object) A Moore-Penrose inverse of X.

Arguments

X

(object) two-dimensional, for which a Moore-Penrose inverse has to be computed

tol

(numeric) tolerance value to be used in comparisons

Author

Authors of the 'MASS' package.