bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] 'const'ness of function arguments


From: Jari Häkkinen
Subject: [Bug-gsl] 'const'ness of function arguments
Date: Tue, 16 Aug 2005 20:37:13 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

Hi all,
I've noticed two fitting functions that probably should have a 'const' qualifier on the third argument. The 'x' parameter in fdfsolver.c:

int
gsl_multifit_fdfsolver_set (gsl_multifit_fdfsolver * s,
                             gsl_multifit_function_fdf * f,
                             gsl_vector * x)

and in fsolver.c:

int
gsl_multifit_fsolver_set (gsl_multifit_fsolver * s,
                          gsl_multifit_function * f,
                          gsl_vector * x)

can safely be set to 'const' since these are only used for initialization of another gsl_vector. Can someone please make these changes in CVS?


Cheers,

Jari




reply via email to

[Prev in Thread] Current Thread [Next in Thread]