Mercurial > hg > octave-nkf
diff src/oct-map.h @ 10764:e141bcb1befd
implement map concat optimizations for [] operator
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 02 Jul 2010 10:10:51 +0200 |
parents | 12dfe91e9fab |
children | f0304c545588 |
line wrap: on
line diff
--- a/src/oct-map.h +++ b/src/oct-map.h @@ -364,6 +364,7 @@ // The Array-like methods. octave_idx_type numel (void) const { return dimensions.numel (); } octave_idx_type length (void) const { return numel (); } + bool is_empty (void) const { return dimensions.any_zero (); } octave_idx_type rows (void) const { return dimensions(0); } octave_idx_type cols (void) const { return dimensions(1); }