mpinv {phylin}R Documentation

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.

Author(s)

Pedro Tarroso <ptarroso@cibio.up.pt>

Examples

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

[Package phylin version 2.0.2 Index]