Mercurial > octave-nkf
diff libinterp/corefcn/inv.cc @ 19442:a0c7001cf1a8
consistent messages and IDs for singular matrix warnings
* lo-array-gripes.cc, lo-array-gripes.h (gripe_singular_matrix,
warning_id_nearly_singular_matrix, warning_id_singular_matrix):
New warning function and ID strings.
* inv.cc, sparse-xdiv.cc, xdiv.cc, CMatrix.cc, CSparse.cc, dMatrix.cc,
dSparse.cc, fCMatrix.cc, fMatrix.cc: Use gripe_singular_matrix instead
of individual calls to warning.
* warning_ids.m: Update list of IDs.
* NEWS note change.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Dec 2014 21:56:17 -0500 |
parents | 9feb46ac6847 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/libinterp/corefcn/inv.cc Tue Dec 16 15:50:37 2014 -0800 +++ b/libinterp/corefcn/inv.cc Wed Dec 17 21:56:17 2014 -0500 @@ -227,8 +227,7 @@ } if (nargout < 2 && (info == -1 || rcond_plus_one_eq_one)) - warning ("inverse: matrix singular to machine precision, rcond = %g", - (isfloat ? frcond : rcond)); + gripe_singular_matrix (isfloat ? frcond : rcond); } return retval;