pseudoInverse: Compute a pseudo-inverse matrix

View source: R/pseudoInverse.R

pseudoInverseR Documentation

Compute a pseudo-inverse matrix

Description

Compute a pseudo-inverse matrix using singular value decomposition and setting very small singular values to zero.

Usage

pseudoInverse(a, tol = 1e-07)

Arguments

a

a matrix

tol

a number, the threshold for non-zero singular values.

Details

The singular value decomposition of a is computed and singular values smaller than tol are set to zero. The result is formed using the standard formula.

Value

a matrix

Examples

##---- Should be DIRECTLY executable !! ----

gbutils documentation built on May 28, 2022, 1:13 a.m.