Mercurial > octave-nkf
diff src/DLD-FUNCTIONS/spfind.cc @ 6013:13c4326d3501
[project @ 2006-09-29 20:50:34 by jwe]
author | jwe |
---|---|
date | Fri, 29 Sep 2006 20:50:35 +0000 |
parents | d3112590883f |
children | 93c65f2a5668 |
line wrap: on
line diff
--- 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)