Mercurial > octave-nkf
diff liboctave/dMatrix.cc @ 13828:f1b023fd098d
always initialize info and rcon in Matrix determinant methods
* dMatrix.cc (Matrix::determinant): Always initialize info and rcon.
* CMatrix.cc (ComplexMatrix::determinant): Likewise.
* fMatrix.cc (FloatMatrix::determinant): Likewise.
* fCMatrix.cc (FloatComplexMatrix::determinant): Likewise.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 05 Nov 2011 01:59:40 -0400 |
parents | 6dfebfa334cb |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/liboctave/dMatrix.cc Fri Nov 04 20:09:02 2011 -0700 +++ b/liboctave/dMatrix.cc Sat Nov 05 01:59:40 2011 -0400 @@ -1239,6 +1239,9 @@ { DET retval (1.0); + info = 0; + rcon = 0.0; + octave_idx_type nr = rows (); octave_idx_type nc = cols (); @@ -1267,7 +1270,6 @@ Matrix atmp = *this; double *tmp_data = atmp.fortran_vec (); - info = 0; double anorm = 0; if (calc_cond) anorm = xnorm (*this, 1);