comparison liboctave/array/CMatrix.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 479d1d3cb5c3
comparison
equal deleted inserted replaced
18625:ee125c82e01e 18632:cb37b17b6091
1720 } 1720 }
1721 1721
1722 double 1722 double
1723 ComplexMatrix::rcond (MatrixType &mattype) const 1723 ComplexMatrix::rcond (MatrixType &mattype) const
1724 { 1724 {
1725 double rcon; 1725 double rcon = octave_NaN;
1726 octave_idx_type nr = rows (); 1726 octave_idx_type nr = rows ();
1727 octave_idx_type nc = cols (); 1727 octave_idx_type nc = cols ();
1728 1728
1729 if (nr != nc) 1729 if (nr != nc)
1730 (*current_liboctave_error_handler) ("matrix must be square"); 1730 (*current_liboctave_error_handler) ("matrix must be square");