which_max

which_max(x)

Return 0-based index of the maximum value.