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	Fri Sep 29 19:01:06 2006 +0000
+++ b/src/ChangeLog	Fri Sep 29 20:50:35 2006 +0000
@@ -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	Fri Sep 29 19:01:06 2006 +0000
+++ b/src/DLD-FUNCTIONS/spfind.cc	Fri Sep 29 20:50:35 2006 +0000
@@ -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)