argmin
- compas.geometry.argmin(values)[source]
Returns the index of the first minimum value within an array.
- Parameters
values (list of float) – A list of values.
Notes
NumPy’s argmin function 1 is different, it returns an array of indices.
Examples
>>> argmin([4, 2, 2, 3]) 1
- Returns
int – The index of the first minimum value within an array.
References