Mercurial > octave-libgccjit
comparison liboctave/array/dMatrix.cc @ 18632:cb37b17b6091
Initialize rcond value to octave_NaN.
* liboctave/array/CMatrix.cc(rcond): Initialize rcon to octave_NaN
* liboctave/array/dMatrix.cc(rcond): Initialize rcon to octave_NaN
* liboctave/array/fMatrix.cc(rcond): Initialize rcon to octave_NaN
* liboctave/array/fCMatrix.cc(rcond): Initialize rcon to octave_NaN
author | PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com> |
---|---|
date | Fri, 07 Mar 2014 23:14:37 +0530 |
parents | 8e056300994b |
children | aa9ca67f09fb |
comparison
equal
deleted
inserted
replaced
18625:ee125c82e01e | 18632:cb37b17b6091 |
---|---|
1380 } | 1380 } |
1381 | 1381 |
1382 double | 1382 double |
1383 Matrix::rcond (MatrixType &mattype) const | 1383 Matrix::rcond (MatrixType &mattype) const |
1384 { | 1384 { |
1385 double rcon; | 1385 double rcon = octave_NaN; |
1386 octave_idx_type nr = rows (); | 1386 octave_idx_type nr = rows (); |
1387 octave_idx_type nc = cols (); | 1387 octave_idx_type nc = cols (); |
1388 | 1388 |
1389 if (nr != nc) | 1389 if (nr != nc) |
1390 (*current_liboctave_error_handler) ("matrix must be square"); | 1390 (*current_liboctave_error_handler) ("matrix must be square"); |