powered by
Calculates the Moore-Penrose generalized inverse of a matrix X.
invgen(a, tol)
A Moore-Penrose generalized inverse matrix for X.
Matrix for which the Moore-Penrose inverse is required.
A relative tolerance to detect zero singular values.
solve,svd,eigen
solve
svd
eigen
mat1<-matrix(rnorm(100),ncol=10) print(invgen(mat1))
Run the code above in your browser using DataLab