Skip to content

Instantly share code, notes, and snippets.

@Adenilson
Created October 30, 2014 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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