help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] setting function of gsl_odeiv_system structure to a C++


From: Andrew W. Steiner
Subject: Re: [Help-gsl] setting function of gsl_odeiv_system structure to a C++ class member function
Date: Tue, 20 Apr 2010 20:04:42 -0600

> So it seems the moral of the story is that GSL was written with C in mind,
> not C++.  Passing pointers to the time, state, ode right hand sides, and
> parameters at each time step wouldn't be needed if each of these things were
> member attributes that the ode function had access to.  So trying to fit the
> existing framework into a C++ object may not make the most sense, it seems
> to me.  I'll probably just go with a functional approach for now.

Hello Luke (cc all),

     If you like, you might want to check out O2scl, which reimplements the
GSL ODE solvers with function objects, which allows you to specify
non-static member functions. See o2scl.sourceforge.net for more.

Take care,
Andrew




reply via email to

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