pub fn argmax<T: PartialOrd>(xs: &[T]) -> usizeExpand description
Returns the index of the largest element in xs.
If there are multiple largest elements, returns the index of the first.
pub fn argmax<T: PartialOrd>(xs: &[T]) -> usizeReturns the index of the largest element in xs.
If there are multiple largest elements, returns the index of the first.