Template Function bitrl::utils::maths::arg_min

Function Documentation

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

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