Learn R Programming

VCA (version 1.3.1)

MPinv: Moore-Penrose Inverse of a Matrix.

Description

This function is originally defined in package 'MASS'. 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))

Arguments

X
(object) two-dimensional, for which a Moore-Penrose inverse has to be computed
tol
(numeric) tolerance value to be used in comparisons

Value

(object) A Moore-Penrose inverse of X.