Hello,
I'll put in a short plug for O2scl (o2scl.sourceforge.net) which
rewrites the GSL minimizers so that the function is specified through
a template type. In this way, one can use std::function and has the
full flexibility of the newer C++ lambda function extensions. You
may benefit from
On 13/02/13 08:26, Hershel Safer wrote:
> l define a function myF() to compute f(x), and pass GSL a pointer to myF().
> The problem is that the compiler won't convert from "pointer to myF ()" to
> the way that GSL declares the pointer. This is because C++ treats a
> "pointer to member function" dif
Hi folks,
I'm trying to use GSL's multimin routine from C++, but the same issue
arises with integration and any functionality that uses a callback function
to calculate a user function f(x). The calls to GSL and to the callback
function are in a class. I am using g++ 4.1.2 and GSL 1.13.
l define