Mercurial > hg > octave-nkf
comparison src/xdiv.cc @ 10630:832732c2eb80
use ID for singularity warning in matrix division
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 13 May 2010 13:47:20 +0200 |
parents | 4d1fc073fbb7 |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
10629:b7c4954e1c00 | 10630:832732c2eb80 |
---|---|
57 } | 57 } |
58 | 58 |
59 static void | 59 static void |
60 solve_singularity_warning (double rcond) | 60 solve_singularity_warning (double rcond) |
61 { | 61 { |
62 warning ("matrix singular to machine precision, rcond = %g", rcond); | 62 warning_with_id ("Octave:singular-matrix-div", |
63 warning ("attempting to find minimum norm solution"); | 63 "matrix singular to machine precision, rcond = %g", rcond); |
64 } | 64 } |
65 | 65 |
66 template <class T1, class T2> | 66 template <class T1, class T2> |
67 bool | 67 bool |
68 mx_leftdiv_conform (const T1& a, const T2& b) | 68 mx_leftdiv_conform (const T1& a, const T2& b) |