pinv: Pseudoinverse of a Matrix

View source: R/utils.R

pinvR Documentation

Pseudoinverse of a Matrix

Description

Calculate the Moore-Penrose pseudoinverse of a matrix.

Usage

pinv(x, tol = sqrt(.Machine$double.eps))

Arguments

x

A matrix.

tol

The relative tolerance for detecting non-zero singular values.

Value

A matrix giving the pseudoinverse of x.

Examples

set.seed(1)
x <- diag(10) + rnorm(100)

pinv(x)

kuwisdelu/matter documentation built on Dec. 8, 2024, 8:09 p.m.