Mercurial > hg > octave-lyh
diff liboctave/CMatrix.cc @ 6486:e978a9233cf6
[project @ 2007-04-04 15:16:46 by jwe]
author | jwe |
---|---|
date | Wed, 04 Apr 2007 15:17:51 +0000 |
parents | 7e958a1532c6 |
children | 3f4ccca05612 |
line wrap: on
line diff
--- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -1186,9 +1186,15 @@ { if (mattype.is_hermitian ()) { - ComplexCHOL chol (*this, info); + ComplexCHOL chol (*this, info, calc_cond); if (info == 0) - ret = chol.inverse (); + { + if (calc_cond) + rcond = chol.rcond(); + else + rcond = 1.0; + ret = chol.inverse (); + } else mattype.mark_as_unsymmetric (); }