[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] non-linear LS fit example in documentation: bug?
From: |
Brian Gough |
Subject: |
Re: [Bug-gsl] non-linear LS fit example in documentation: bug? |
Date: |
Wed, 21 Jan 2009 15:59:26 +0000 |
User-agent: |
Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI) |
At Tue, 20 Jan 2009 15:16:26 -0500,
Mark M. Ito wrote:
> Shouldn't the "if (status) break;" be an "if (status) continue;"? It is
> normal for the solver to return GSL_CONTINUE in which case you want to
> continue to iterate. Break exits the do loop completely, no?
Hello,
Thanks for your email. The iterate function should return GSL_SUCCESS
or an error (if it can't make progress) so I believe the example is ok
(the test functions return GSL_CONTINUE).
If you're seeing GSL_CONTINUE return values from
gsl_multifit_fdfsolver_iterate I'd be interested to see the test
function, thanks.
--
Brian Gough
(GSL Maintainer)