def MultiArgMax(x):
m = x.max()<EOL>return (i for i, v in enumerate(x) if v == m)<EOL>
Get tuple (actually a generator) of indices where the max value of
array x occurs. Requires that x have a max() method, as x.max()
(in the case of NumPy) is much faster than max(x).
For a simpler, faster argmax when there is only a single maximum entry,
or when knowing only the first index where the maximum occurs,
call argmax() on a NumPy array.

:param x: Any sequence that has a max() method.
:returns: Generator with the indices where the max value occurs.