Mercurial > hg > octave-terminal
changeset 6217:95084cd8723c
[project @ 2006-12-22 17:51:28 by jwe]
author | jwe |
---|---|
date | Fri, 22 Dec 2006 17:51:28 +0000 |
parents | 74ca56e4414c |
children | c1b66b74937d |
files | liboctave/ChangeLog liboctave/boolSparse.cc |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2006-12-22 David Bateman <dbateman@free.fr> + + * boolSparse.cc (SparseBoolMatrix::operator !): Fix off-by-one error. + 2006-12-22 John W. Eaton <jwe@octave.org> * dim-vector.h (dim_vector::dim_vector): Always start with at @@ -9,7 +13,7 @@ * lo-sysdep.cc (opendir): Avoid passing \\* to FindFirstFile. * file-ops.cc (ops::canonicalize_file_name): Provide partial - implementatino for Windows. + implementation for Windows. 2006-12-06 David Bateman <dbateman@free.fr>
--- a/liboctave/boolSparse.cc +++ b/liboctave/boolSparse.cc @@ -96,6 +96,7 @@ octave_idx_type ii = 0; octave_idx_type jj = 0; + r.cidx (0) = 0; for (octave_idx_type i = 0; i < nc; i++) { for (octave_idx_type j = 0; j < nr; j++) @@ -108,7 +109,7 @@ r.ridx(ii++) = j; } } - r.cidx (i) = ii; + r.cidx (i+1) = ii; } return r;