Last chance! 50% off unlimited learning
Sale ends in
Ginv(x, eps=1e-6)
Anderson, E., et al. (1994). LAPACK User's Guide, 2nd edition, SIAM, Philadelphia.
# for matrix x, extract the generalized inverse and
# rank of x as follows
x <- matrix(c(1,2,1,2,3,2),ncol=3)
save <- Ginv(x)
ginv.x <- save$Ginv
rank.x <- save$rank
Run the code above in your browser using DataLab