mpinv: Generalized inverse of a matrix

Description Usage Arguments Value Author(s) Examples

View source: R/mpinv.R

Description

Computes the generalized inverse of a matrix using singular-value decomposition.

Usage

1
mpinv(A, eps = 1e-13)

Arguments

A

Matrix to be inverted.

eps

Minimum value threshold.

Value

Returns a matrix containing the inverse of matrix A.

Author(s)

Pedro Tarroso <ptarroso@cibio.up.pt>

Examples

1
2
    m <- matrix(rnorm(16), 4, 4)
    mi <- mpinv(m)

phylin documentation built on Dec. 12, 2019, 5:07 p.m.