diff libinterp/corefcn/schur.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 e39e05d90788
children 499b851fbfae
line wrap: on
line diff
--- a/libinterp/corefcn/schur.cc	Tue Jan 19 12:44:54 2016 -0800
+++ b/libinterp/corefcn/schur.cc	Tue Jan 19 14:09:56 2016 -0800
@@ -167,7 +167,7 @@
   octave_idx_type nc = arg.columns ();
 
   if (nr != nc)
-    err_square_matrix_required ("schur");
+    err_square_matrix_required ("schur", "A");
 
   octave_value_list retval;
 
@@ -261,7 +261,7 @@
 %!error schur ()
 %!error schur (1,2,3)
 %!error [a,b,c] = schur (1)
-%!error <argument must be a square matrix> schur ([1, 2, 3; 4, 5, 6])
+%!error <must be a square matrix> schur ([1, 2, 3; 4, 5, 6])
 %!error <wrong type argument 'cell'> schur ({1})
 %!warning <incorrect ordered schur argument> schur ([1, 2; 3, 4], "bad_opt");