Mercurial > hg > octave-nkf
diff liboctave/boolMatrix.cc @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | e35b034d3523 |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/liboctave/boolMatrix.cc +++ b/liboctave/boolMatrix.cc @@ -51,7 +51,7 @@ } boolMatrix& -boolMatrix::insert (const boolMatrix& a, int r, int c) +boolMatrix::insert (const boolMatrix& a, octave_idx_type r, octave_idx_type c) { Array2<bool>::insert (a, r, c); return *this; @@ -62,13 +62,13 @@ boolMatrix boolMatrix::operator ! (void) const { - int nr = rows (); - int nc = cols (); + octave_idx_type nr = rows (); + octave_idx_type nc = cols (); boolMatrix b (nr, nc); - for (int j = 0; j < nc; j++) - for (int i = 0; i < nr; i++) + for (octave_idx_type j = 0; j < nc; j++) + for (octave_idx_type i = 0; i < nr; i++) b.elem (i, j) = ! elem (i, j); return b;