amd
- :
p =amd(S)¶ - :
p =amd(S, opts)¶ Return the approximate minimum degree permutation vector of the square matrix S.
The ordering is computed from the nonzero pattern of
S + S'. UsingS(p,p)in a Cholesky or LU factorization usually causes much less fill-in than S itself.The optional structure opts may contain the fields
dense(rows and columns with more thandense * sqrt (n)entries are ordered last; default 10) andaggressive(nonzero enables aggressive absorption; default 1).