diff src/DLD-FUNCTIONS/sqrtm.cc @ 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 9f0a264d2f60
children 3140cb7a05a1
line wrap: on
line diff
--- 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>