PreviousIndexLast

[bug-gsl] Re: const args for some permutation and multimin functions (2007-11-13)

From: Brian Gough <bjg@gnu.org>
Subject: Re: const args for some permutation and multimin functions
Date: Tue, 13 Nov 2007 20:30:46 +0000
To: "Justin Lenzo" <j-lenzo@................>
Cc: bug-gsl@gnu.org

At Mon, 12 Nov 2007 17:15:50 -0600 (CST),
Justin Lenzo wrote:
> There are a few routines that I have noticed should probably take pointers
> to constant objects, because they do not actually change the underlying
> data. Attached please find a patch that modifies the definitions of a few
> cases:
>
> gsl_permutation_valid
> gsl_multin_fdfminizer_x
> gsl_multin_fdfminizer_dx
> gsl_multin_fdfminizer_gradient
> gsl_multin_fdfminizer_minimum
>
> Note that the documentation for the fdfminimizer routines describes them
> as taking a constant object, but in the code they do not.

Thanks for the patch!
I've applied it to the CVS repository.

--
Brian Gough