I am not sure this is the correct place to report this. Please forward
to whoever should be notified. Thank you.
When providing examples of "gsl_function"
gsl_function F;
struct my_f_params params = { 3.0, 2.0, 1.0 };
F.function =&my_f;
F.params =¶ms;
The function f(x) can be evaluated using the following macro,
#define GSL_FN_EVAL(F,x)
(*((F)->function))(x,(F)->params)
Unless I am missing something, the macro is incorrect. The variable "F"
is of type "gsl_function", not "pointer to gsl_function" so the use of
"(F)->function" or "(F)->params" makes no sense in this context.
It should read:
gsl_function F;
struct my_f_params params = { 3.0, 2.0, 1.0 };
F.function =&my_f;
F.params =¶ms;
The function f(x) can be evaluated using the following macro,
#define GSL_FN_EVAL(F,x)
(*(F.function))(x,F.params)
The same mistake is made again further down in the "gsl_function_fdf"
section.
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl