__ccolamd__
- :
p =__ccolamd__(S)¶ - :
[p, stats] =__ccolamd__(S)¶ Compute a fill-reducing permutation of the columns of the sparse matrix S.
The returned vector p reorders the columns so that factorizing
S(:, p)with LU or QR typically introduces fewer new nonzero entries than factorizing S in its original column order. The permutation comes from a greedy minimum-degree sweep over the graph whose vertices are the columns of S and whose edges join any two columns that share a nonzero row: at each step the still-unordered column with the fewest unordered neighbors is placed next. An empty input produces an empty permutation. When a second output is requested, stats is provided for interface compatibility and is reported as zero.