bug-gsl
[Top][All Lists]
Advanced

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

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


From: Brian Gough
Subject: Re: [Bug-gsl] 'const'ness of function arguments
Date: Fri, 19 Aug 2005 15:03:23 +0100

Jari Häkkinen writes:
 > 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.

Thanks for the bug report. I have noted it to be fixed.

-- 
Brian Gough





reply via email to

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