argmax

compas_fab.utilities.argmax(numbers)[source]

Returns the index of the maximum value in numbers.

The function is similar to NumPy’s argmax function.

Note

For a large list of numbers reconsider using NumPy’s argmax function, since this function might take too long.