diff liboctave/Array.h @ 10716:f7f26094021b

improve cat code design in data.cc, make horzcat/vertcat more Matlab compatible
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 21 Jun 2010 15:48:56 +0200
parents e3064439d6b4
children 9478b216752e
line wrap: on
line diff
--- a/liboctave/Array.h	Fri Jun 18 14:12:24 2010 +0200
+++ b/liboctave/Array.h	Mon Jun 21 15:48:56 2010 +0200
@@ -576,6 +576,9 @@
 
   Array<T> diag (octave_idx_type k = 0) const;
 
+  // Concatenation along a specified (0-based) dimension, equivalent to cat().
+  // dim = -1 corresponds to dim = 0 and dim = -2 corresponds to dim = 1,
+  // but apply the looser matching rules of vertcat/horzcat.
   static Array<T>
   cat (int dim, octave_idx_type n, const Array<T> *array_list);