powered by
a simple wrapper to call Armadillo's pinv function
armaGinv(x, tol = NULL)
Pseudo-inverse
numeric matrix
numeric: maximum singular value to be considered
mat <- matrix(rnorm(12),3,4) pinvmat <- armaGinv(mat)
Run the code above in your browser using DataLab