Mercurial > hg > octave-nkf
diff liboctave/idx-vector.h @ 4504:f6a61399bc5c
[project @ 2003-09-09 17:48:00 by jwe]
author | jwe |
---|---|
date | Tue, 09 Sep 2003 17:49:13 +0000 |
parents | af308ca1a354 |
children | 623f6262a8e9 |
line wrap: on
line diff
--- a/liboctave/idx-vector.h +++ b/liboctave/idx-vector.h @@ -29,6 +29,8 @@ #include <iostream> +#include "Array.h" + class ColumnVector; class boolMatrix; class Matrix; @@ -107,6 +109,8 @@ int orig_rows (void) const { return orig_nr; } int orig_columns (void) const { return orig_nc; } + Array<int> orig_dimensions (void) const { return orig_dims; } + // other stuff void shorten (int n); // Unsafe. Avoid at all cost. @@ -123,8 +127,16 @@ int num_ones; int max_val; int min_val; + + // XXX FIXME XXX -- with the introduction of orig_dims, these two + // variables are not neccessary. orig_dims(0) and orig_dims(1) + // should replace them in the code. + int orig_nr; int orig_nc; + + Array<int> orig_dims; + int count; int frozen_at_z_len; int frozen_len; @@ -246,6 +258,8 @@ int orig_rows (void) const { return rep->orig_rows (); } int orig_columns (void) const { return rep->orig_columns (); } + Array<int> orig_dimensions (void) const { return rep->orig_dimensions (); } + int orig_empty (void) const { return (! is_colon ()