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.
MPinv(X, tol = sqrt(.Machine$double.eps))
(object) A Moore-Penrose inverse of X.
(object) two-dimensional, for which a Moore-Penrose inverse has to be computed
(numeric) tolerance value to be used in comparisons
Authors of the 'MASS' package.