Skip to content

dmperm

builtin · libnexusinterp/corefcn/dmperm-proprietary.cc

: p = dmperm (A)
: [p, q, r, s] = dmperm (A)

Dulmage-Mendelsohn permutation of the sparse matrix A.

With one output, p(j) is the row matched to column j by a maximum matching of the sparsity pattern, or 0 when column j is unmatched. With more outputs, A(p,q) is block upper triangular: an optional underdetermined block first, then the square irreducible blocks, then an optional overdetermined block. The vectors r and s hold the row and column starts of the blocks.