This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: let nmsimplex handle non-finite function values properly


At Wed, 25 Apr 2007 11:23:24 +0200,
Alxneit-Kamber Ivo wrote:
> the logic behind the patch is that we can generally treat non-finite
> function values (POSINF, NEGINF, NAN) as "no improvment reached" in
> 'gsl_fminimizer_iterate()'. only when we contract the whole simplex
> with respect to its lowest point we have to abort in case we encounter
> non-finite function values. the same is true in 'gsl_fminimizer_set()'.
> this ensures that the simplex never contains non-finite values.
> 
> also included are two minor clean ups.
> leak_plug.patch: plugs memory leak if 'gsl_fminimizer_alloc()' fails.
> dim_test.patch: checks for a correct number of parameters in
> 'gsl_fminimizer_alloc()' and for the correct sizes of the various vector
> arguments passed around.

That looks good, I will apply the patches. Thanks!

-- 
Brian Gough


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]