def MultiArgMax(x):
 m = x.max()
 return (i for (i, v) in enumerate(x) if (v == m))

def MultiArgMax ( x ) : m = x . max ( ) return ( i for ( i , v ) in enumerate ( x ) if ( v == m ) )
get tuple of indices where the max value of array x occurs .