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 Sept. 5, 2024, 9:57 p.m.