MPinv {VCA}R Documentation

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))

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.

Author(s)

Authors of the 'MASS' package.


[Package VCA version 1.5.1 Index]