armaGinv {Morpho} | R 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)
[Package Morpho version 2.12 Index]