Boost logo

Boost Users :

Subject: [Boost-users] Invoking 'brent_find_minima' for a member function of a class?
From: s seelenluft (sseelenluft_at_[hidden])
Date: 2009-07-13 12:13:08


Hi,

I found this example:
http://net.pku.edu.cn/~webg/src/paradise/thirdparty/installed/include/boost-1_35/boost/math/tools/minima.hppwhich
works fine but I have trouble figuring out how to adapt this if the
function to minimize is a member function of a class (and invoked in another
member function).
Any example of how to call brent_find_minima (or similar functions) from a
member function and minimizing a member function would be very welcome. I
have to the advice to wrap the function to be minimized into a static
wrapper function but could not find an example how to do this from within a
member function (I have it working when calling from main).

Thanks.

Markus



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net