This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Parameter vectors declared as const in minimized functions
Andrej Prsa writes:
> I'm sorry to be bugging you guys again; although I find the discussion
> about const'ness very valuable, I still wonder whether it is really
> necessary to have gsl_vector * that the minimized function takes as the
> first argument qualified as const? I realize there are ways to come around
> this issue, but is there any particular justifier for having it constant
> in the first place?
The algorithms won't work properly if the position is modified
arbitrarily. See the post by F.Bastin.
--
regards
Brian Gough
Network Theory Ltd,
Commercial support for GSL --- http://www.network-theory.co.uk/gsl/