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

  1. function p = symrcm(S)
  2. %SYMRCM    Reverse Cuthill-McKee ordering.
  3. %    p = SYMRCM(S) returns a permutation p such that S(p,p) 
  4. %    tends to have smaller profile than S.  This is a 
  5. %    good preordering for LU or Cholesky factorization 
  6. %    of matrices that come from "long, skinny" problems.
  7. %    It works for both symmetric and asymmetric S.
  8. %
  9. %    See also SYMMMD, COLMMD, COLPERM.
  10.  
  11. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  12.  
  13. p = sparsfun('symrcm',S|(S'));
  14.