...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::minmax_element
// In header: <boost/compute/algorithm/minmax_element.hpp> template<typename InputIterator, typename Compare> std::pair< InputIterator, InputIterator > minmax_element(InputIterator first, InputIterator last, Compare compare, command_queue & queue = system::default_queue());
Returns a pair of iterators with the first pointing to the minimum element and the second pointing to the maximum element in the range [first
, last
).
Space complexity on CPUs: \Omega(1)
Space complexity on GPUs: \Omega(N)
See Also:
max_element(), min_element()
Parameters: |
|