num::argmax¶
Defined in header <stats/selection.hpp>
template <typename Score>
idx argmax(idx count, Score &&score); // (1)
template <typename T>
idx argmax(view<const T> values); // (2)
(1) Return the first index of the largest score: \(\arg\max_i s(i)\).
(2) Return the first index of the largest entry: \(\arg\max_i x_i\).