Opened 6 years ago
#12522 new Feature Requests
boost/math/tools/minima.hpp pass functor by ref
Reported by: | 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);
Note:
See TracTickets
for help on using tickets.