At Fri, 28 Jan 2011 15:16:03 +0100, Mark Jenkins wrote: > > 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.
Thanks for the email. I've changed the text to try to make it clearer that a pointer is needed. -- Brian Gough (GSL Maintainer) Network Theory Ltd, Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/ _______________________________________________ Bug-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gsl
