armaGinv: calculate Pseudo-inverse of a Matrix using RcppArmadillo

View source: R/armaGinv.r

armaGinvR Documentation

calculate Pseudo-inverse of a Matrix using RcppArmadillo

Description

a simple wrapper to call Armadillo's pinv function

Usage

armaGinv(x, tol = NULL)

Arguments

x

numeric matrix

tol

numeric: maximum singular value to be considered

Value

Pseudo-inverse

Examples

mat <- matrix(rnorm(12),3,4)
pinvmat <- armaGinv(mat)

Morpho documentation built on June 22, 2024, 7:19 p.m.