diff libinterp/dldfcn/colamd.cc @ 21110:3d0d84305600

Use err_square_matrix_required more widely. * errwarn.h (err_square_matrix_required): Change prototype to take a second argument which is the name of the variable that is not square. * errwarn.cc (err_square_matrix_required): Take second argument NAME and print "NAME must be a square matrix". * balance.cc (Fbalance): Update calling form of err_square_matrix_required. * det.cc (Fdet): Update calling form of err_square_matrix_required. Update pattern in BIST tests to match new output. * eig.cc (Feig): Update calling form of err_square_matrix_required. Update pattern in BIST tests to match new output. * hess.cc (Fhess): Update calling form of err_square_matrix_required. Update pattern in BIST tests to match new output. * inv.cc (Finv): Update calling form of err_square_matrix_required. Update pattern in BIST tests to match new output. * qz.cc (Fqz): Update calling form of err_square_matrix_required. * schur.cc (Fschur): Update calling form of err_square_matrix_required. Update pattern in BIST tests to match new output. * sqrtm.cc (Fsqrtm): Update calling form of err_square_matrix_required. * sylvester.cc (Fsylvester): Update calling form of err_square_matrix_required. Update pattern in BIST tests to match new output. * amd.cc (Famd): Switch from error to err_square_matrix_required. Update pattern in BIST tests to match new output. * ccolamd.cc (Fcsymamd): Switch from error to err_square_matrix_required. * chol.cc (Fcholdelete, Fcholshift): Switch from error to err_square_matrix_required. * colamd.cc (Fsymamd): Switch from error to err_square_matrix_required. * symbfact.cc (Fsymfact): Switch from error to err_square_matrix_required. * symrcm.cc (Fsymrcm): Update calling form of err_square_matrix_required.
author Rik <rik@octave.org>
date Tue, 19 Jan 2016 14:09:56 -0800
parents bd1752782e56
children e06e600f396a
line wrap: on
line diff
--- a/libinterp/dldfcn/colamd.cc	Tue Jan 19 12:44:54 2016 -0800
+++ b/libinterp/dldfcn/colamd.cc	Tue Jan 19 14:09:56 2016 -0800
@@ -35,6 +35,7 @@
 
 #include "ov.h"
 #include "defun-dld.h"
+#include "errwarn.h"
 #include "pager.h"
 #include "ov-re-mat.h"
 
@@ -579,7 +580,7 @@
     }
 
   if (n_row != n_col)
-    error ("symamd: matrix S must be square");
+    err_square_matrix_required ("symamd", "S");
 
   // Allocate workspace for symamd
   OCTAVE_LOCAL_BUFFER (octave_idx_type, perm, n_col+1);