Mercurial > hg > octave-nkf
diff liboctave/fCMatrix.cc @ 8337:e02242c54c49
reuse matrix type detected in det
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 19 Nov 2008 16:55:47 +0100 |
parents | 9813c07ca946 |
children | 25bc2d31e1bf |
line wrap: on
line diff
--- a/liboctave/fCMatrix.cc +++ b/liboctave/fCMatrix.cc @@ -1588,6 +1588,9 @@ { int typ = mattype.type (); + if (typ == MatrixType::Unknown) + typ = mattype.type (*this); + if (typ == MatrixType::Lower || typ == MatrixType::Upper) { for (octave_idx_type i = 0; i < nc; i++) @@ -1630,7 +1633,7 @@ rcon = 0.0; for (octave_idx_type i = 0; i < nc; i++) - retval *= elem (i,i); + retval *= atmp (i,i); retval = retval.square (); }