Opened 6 years ago

#12522 new Feature Requests

boost/math/tools/minima.hpp pass functor by ref

Reported by: ch816772@… Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.61.0 Severity: Optimization
Keywords: Cc: ch816772@…

Description

Would it be better to pass the functor f by ref for the following

template <class F, class T> std::pair<T, T> brent_find_minima(F f, T min, T max, int bits);

template <class F, class T> std::pair<T, T> brent_find_minima(F f, T min, T max, int bits, boost::uintmax_t& max_iter);

To instead be:

template <class F, class T> std::pair<T, T> brent_find_minima(F& f, T min, T max, int bits);

template <class F, class T> std::pair<T, T> brent_find_minima(F& f, T min, T max, int bits, boost::uintmax_t& max_iter);

Change History (0)

Note: See TracTickets for help on using tickets.