def all_argmax(x):
 m = max(x)
 return [i for (i, v) in enumerate(x) if (v == m)]

def all_argmax ( x ) : m = max ( x ) return [ i for ( i , v ) in enumerate ( x ) if ( v == m ) ]
return the indices of all values that are equal to the maximum: no breaking ties .