Mercurial > hg > octave-nkf
diff liboctave/boolMatrix.h @ 6979:2883ea1c5c18
[project @ 2007-10-08 20:23:48 by dbateman]
author | dbateman |
---|---|
date | Mon, 08 Oct 2007 20:26:01 +0000 |
parents | 0ce71beb1cf3 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/liboctave/boolMatrix.h +++ b/liboctave/boolMatrix.h @@ -38,6 +38,8 @@ boolMatrix (void) : Array2<bool> () { } boolMatrix (octave_idx_type r, octave_idx_type c) : Array2<bool> (r, c) { } boolMatrix (octave_idx_type r, octave_idx_type c, bool val) : Array2<bool> (r, c, val) { } + boolMatrix (const dim_vector& dv) : Array2<bool> (dv) { } + boolMatrix (const dim_vector& dv, bool val) : Array2<bool> (dv, val) { } boolMatrix (const Array2<bool>& a) : Array2<bool> (a) { } boolMatrix (const boolMatrix& a) : Array2<bool> (a) { } @@ -62,6 +64,9 @@ // other operations + boolMatrix diag (void) const; + boolMatrix diag (octave_idx_type k) const; + boolMatrix all (int dim = -1) const; boolMatrix any (int dim = -1) const;