Mercurial > hg > octave-nkf
diff liboctave/chMatrix.h @ 11574:a83bad07f7e3
attempt better backward compatibility for Array resize functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 00:12:05 -0500 |
parents | 57632dea2446 |
children | 0c86ae6f7c34 |
line wrap: on
line diff
--- a/liboctave/chMatrix.h +++ b/liboctave/chMatrix.h @@ -86,6 +86,12 @@ charMatrix extract (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const; + void resize (octave_idx_type nr, octave_idx_type nc, + char rfv = resize_fill_value ()) + { + Array<char>::resize (dim_vector (nr, nc), rfv); + } + charMatrix diag (octave_idx_type k = 0) const; boolMatrix all (int dim = -1) const;