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)

zarquon42b/Morpho documentation built on Jan. 28, 2024, 2:11 p.m.