Mercurial > hg > octave-nkf
changeset 7035:a2000c2b5e7d
[project @ 2007-10-17 15:38:54 by jwe]
author | jwe |
---|---|
date | Wed, 17 Oct 2007 15:38:54 +0000 |
parents | 68db500cb558 |
children | daff886a8e2a |
files | src/ChangeLog src/DLD-FUNCTIONS/__qp__.cc |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-10-17 Gabriele Pannocchia <g.pannocchia@ing.unipi.it> + + * DLD-FUNCTIONS/__qp__.cc (qp): Fix check for Wact(j). + 2007-10-15 Søren Hauberg <hauberg@gmail.com> * error.cc (Ferror): Make text fit on pages when using smallbook.
--- a/src/DLD-FUNCTIONS/__qp__.cc +++ b/src/DLD-FUNCTIONS/__qp__.cc @@ -379,7 +379,7 @@ for (octave_idx_type j = 0; j < n_act-n_eq; j++) { - if (Wact(j) == i - n_eq) + if (Wact(j) == i) { found = true; break; @@ -452,7 +452,7 @@ { for (octave_idx_type j = 0; j < n_act-n_eq; j++) { - if (Wact(j) == i) + if (Wact(j) == i - n_eq) { lambda(i) = lambda_tmp(n_eq+j); break;