Mercurial > hg > octave-lojdl
changeset 6013:13c4326d3501
[project @ 2006-09-29 20:50:34 by jwe]
author | jwe |
---|---|
date | Fri, 29 Sep 2006 20:50:35 +0000 |
parents | 7c048a800ebe |
children | 437f9086b967 |
files | src/ChangeLog src/DLD-FUNCTIONS/spfind.cc |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -4,6 +4,9 @@ (OCTAVE_API_VERSION): Now api-v22. (OCTAVE_RELEASE_DATE): Now 2006-09-29. + * DLD-FUNCTIONS/spfind.cc (sparse_find_non_zero_elem_idx): + Leading dimension is NR, not NC. + * Makefile.in (DEP_5): Include oct-errno.cc in the list. 2006-09-27 John W. Eaton <jwe@octave.org>
--- a/src/DLD-FUNCTIONS/spfind.cc +++ b/src/DLD-FUNCTIONS/spfind.cc @@ -130,7 +130,7 @@ continue; i_idx (cx) = static_cast<double> (v.ridx(i) + 1); j_idx (cx) = static_cast<double> (j + 1); - idx (cx) = j * nc + v.ridx(i) + 1; + idx (cx) = j * nr + v.ridx(i) + 1; val (cx) = v.data(i); cx++; if (cx == count)