powered by
Calculate the generalized inverse of a matrix
myinv(A)
A is the input data matrix.
A matrix which is the generalized inverse of the input matrix.
Calculate the generalized inverse of input matrix A by using singular value decomposition.
p_ginv
# NOT RUN { X = matrix(rnorm(25,0,1),nrow=5,ncol=5); X_inv = myinv(X); # }
Run the code above in your browser using DataLab