Mercurial > hg > octave-lyh
diff liboctave/idx-vector.h @ 2663:00b2eff19bf5
[project @ 1997-02-08 21:58:49 by jwe]
author | jwe |
---|---|
date | Sat, 08 Feb 1997 22:00:24 +0000 |
parents | 4fc9fd1424a9 |
children | 9aeba8e006a4 |
line wrap: on
line diff
--- a/liboctave/idx-vector.h +++ b/liboctave/idx-vector.h @@ -217,6 +217,12 @@ int orig_rows (void) const { return rep->orig_rows (); } int orig_columns (void) const { return rep->orig_columns (); } + int orig_empty (void) const + { + return (! is_colon () + && (orig_rows () == 0 || orig_columns () == 0)); + } + // Unsafe. Avoid at all cost. void shorten (int n) { rep->shorten (n); }