home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / SPARFUN.DI$ / COLMMD.M next >
Encoding:
Text File  |  1993-03-07  |  413 b   |  14 lines

  1. function p = colmmd(S)
  2. %COLMMD    Column minimum degree.
  3. %    p = COLMMD(S).  Column minimum degree ordering of S.
  4. %    For an asymmetric matrix S, this returns a column permutation p
  5. %    such that S(:,p) tends to have sparser LU factors than S.
  6. %
  7. %    See also SYMMMD, SYMRCM, COLPERM.
  8.  
  9. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  10.  
  11. p = sparsfun('colmmd',S);
  12. [ignore,q] = sparsfun('coletree',S(:,p));
  13. p = p(q);
  14.