invgen {far} | R Documentation |
Calculates the Moore-Penrose generalized inverse of a matrix X.
invgen(a, tol)
a |
Matrix for which the Moore-Penrose inverse is required. |
tol |
A relative tolerance to detect zero singular values. |
A Moore-Penrose generalized inverse matrix for X.
mat1<-matrix(rnorm(100),ncol=10) print(invgen(mat1))