Created
July 18, 2011 12:20
-
-
Save tony91782/1089351 to your computer and use it in GitHub Desktop.
Bad idea for computing all diagonal-preserving second order principal minors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minors = NULL | |
for(i in 1:(nrow(mat)-1)){ | |
start = i +1 | |
for(j in start:nrow(mat)){ | |
thisminor = det(mat[c(i,j),c(i,j)]) | |
minors = c(minors, thisminor) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment