Template Function bitrl::utils::maths::arg_max

Function Documentation

template<typename VectorType>
uint_t bitrl::utils::maths::arg_max(const VectorType &vec)

Returns the index of the element that has the maximum value in the array. Implementation taken from http://www.jclay.host/dev-journal/simple_cpp_argmax_argmin.html.