MPinv: Moore-Penrose Generalized Inverse of a Matrix

MPinvR 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.


VCA documentation built on Sept. 7, 2022, 5:07 p.m.