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 Feb. 16, 2023, 10:51 p.m.