# NOT RUN {
M <- matrix(c(4,-6,6,-9),2)
solve(m) # regular inverse does not exist
Mi1 <- MPinv(M) # MASS-implementation 'ginv'
Mi1
M %*% Mi1 %*% M # should be M
Mi2 <- VCA:::Sinv(M)
Mi2
M %*% Mi2 %*% M # should be M
# }
Run the code above in your browser using DataLab