pseudoinverse: Find the Pseudoinverse of a Matrix

View source: R/operations.R

pseudoinverseR Documentation

Find the Pseudoinverse of a Matrix

Description

Find the Pseudoinverse of a Matrix

Usage

pseudoinverse(X)

Arguments

X

A numeric matrix.

Details

The pseudoinverse of a matrix is V Σ^+ U^T - essentially, its inverse over its row space. It always exists even if no left or right inverse does. This function is partly based on the ginv, which does the same thing.

Value

The pseudoinverse of X.

Examples

pseudoinverse(matrix(rnorm(12), ncol = 3))

ryan-heslin/RegLesson documentation built on Aug. 5, 2022, 9:03 p.m.