...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::inner_product
// In header: <boost/compute/algorithm/inner_product.hpp> template<typename InputIterator1, typename InputIterator2, typename T> T inner_product(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, T init, command_queue & queue = system::default_queue());