[Top][All Lists]

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

Re: [Help-gsl] gsl in c++: pointer to member function

From: Jochen Küpper
Subject: Re: [Help-gsl] gsl in c++: pointer to member function
Date: Mon, 20 Mar 2006 19:24:52 +0100

Carsten Fortmann <address@hidden> writes:

> How can I pass a pointer to a member function to a gsl_function
> struct?

You cannot.

One solution is to use a static member function:
| static int gradient(double t, const double y[], double f[], void *params);
Then pass your class along in params...

Einigkeit und Recht und Freiheit      
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)

reply via email to

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