Mercurial > octave-nkf
diff scripts/optimization/fsolve.m @ 8857:20589a8f1a33
fix fsolve bug
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 24 Feb 2009 13:53:14 +0100 |
parents | 5ce12bca4c51 |
children | 22c8272af34b |
line wrap: on
line diff
--- a/scripts/optimization/fsolve.m Tue Feb 24 11:15:05 2009 +0100 +++ b/scripts/optimization/fsolve.m Tue Feb 24 13:53:14 2009 +0100 @@ -274,9 +274,10 @@ xn = norm (dg .* x); fvec = fvec1; fn = fn1; - niter ++; endif + niter ++; + ## FIXME: should outputfcn be only called after a successful iteration? if (! isempty (outfcn)) optimvalues.iter = niter;