which_min

which_min(x)

Return 0-based index of the minimum value.