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

  1. %CHOL    Cholesky factorization.
  2. %    CHOL(X) uses only the diagonal and upper triangle of X.
  3. %    The lower triangular is assumed to be the (complex conjugate)
  4. %    transpose of the upper.  If X is positive definite, then
  5. %    R = CHOL(X) produces an upper triangular R so that R'*R = X.
  6. %    If X is not positive definite, an error message is printed.
  7. %
  8. %    With two output arguments, [R,p] = CHOL(X) never produces an
  9. %    error message.  If X is positive definite, then p is 0 and R
  10. %    is the same as above.   But if X is not positive definite, then
  11. %    p is a positive integer and R is an upper triangular matrix of
  12. %    order q = p-1 so that R'*R = X(1:q,1:q).
  13.  
  14. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  15. %    Built-in function.
  16.