changeset 10629:b7c4954e1c00

add specific ID for sqrtm singularity warning
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 13 May 2010 12:25:26 +0200
parents d406d91aa9c3
children 832732c2eb80
files src/ChangeLog src/DLD-FUNCTIONS/sqrtm.cc
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu May 13 11:46:47 2010 +0200
+++ b/src/ChangeLog	Thu May 13 12:25:26 2010 +0200
@@ -1,3 +1,8 @@
+2010-05-13  Jaroslav Hajek  <highegg@gmail.com>
+
+	* DLD-FUNCTIONS/sqrtm.cc (sqrtm_utri_inplace): Use an ID for the
+	warning.
+
 2010-05-13  Jaroslav Hajek  <highegg@gmail.com>
 
 	* load-save.cc (install_loaded_variable): Pre-extract symbol record
--- a/src/DLD-FUNCTIONS/sqrtm.cc	Thu May 13 11:46:47 2010 +0200
+++ b/src/DLD-FUNCTIONS/sqrtm.cc	Thu May 13 12:25:26 2010 +0200
@@ -86,7 +86,8 @@
     }
 
   if (singular)
-    warning ("sqrtm: matrix is singular, may not have a square root");
+    warning_with_id ("Octave:sqrtm:SingularMatrix",
+                     "sqrtm: matrix is singular, may not have a square root");
 }
 
 template <class Matrix, class ComplexMatrix, class ComplexSCHUR>