Skip to content

Instantly share code, notes, and snippets.

@Adenilson
Created October 30, 2014 17:22
Show Gist options
  • Save Adenilson/5ad519e92edb8a5f6041 to your computer and use it in GitHub Desktop.
Save Adenilson/5ad519e92edb8a5f6041 to your computer and use it in GitHub Desktop.
library(MASS)
M = matrix(c(4, 0, 0, 1, 0, 0, 1, 0, 0, 2, 2, 0, 0, 0, 0, 1), nrow=4, ncol=4)
gen_inv = ginv(M)
inverse = solve(M)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment