diff src/data.cc @ 11242:0090bb47d0b5

simplify special case for concatenation of empty matrices
author John W. Eaton <jwe@octave.org>
date Fri, 12 Nov 2010 13:19:24 -0500
parents 80e01d79cf80
children 903c1a3df301
line wrap: on
line diff
--- a/src/data.cc
+++ b/src/data.cc
@@ -1890,6 +1890,7 @@
 %!assert (cat (3, [], [1,2;3,4], []), [1,2;3,4]);
 %!assert (cat (3, [], [], []), zeros (0, 0, 3));
 
+%!assert (cat (3, [], [], 1, 2), cat (3, 1, 2));
 %!assert (cat (3, [], [], [1,2;3,4]), [1,2;3,4]);
 %!assert (cat (4, [], [], [1,2;3,4]), [1,2;3,4]);
 %!error <dimension mismatch> cat (3, cat (3, [], []), [1,2;3,4]);