Learn R Programming

phylin (version 2.0.2)

mpinv: Generalized inverse of a matrix

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
    m <- matrix(rnorm(16), 4, 4)
    mi <- mpinv(m)
# }

Run the code above in your browser using DataLab