indmax

indmax(itr) -> Integer

Returns the index of the maximum element in a collection.

Examples

julia> indmax([1,2,3,3])
3
julia> indmax([1,2,2,3])
4

See Also

cummax, eigmax, findmax, hist, hist!, hist2d, hist2d!, histrange, indmax, maxabs, maxabs!, maximum!, mean, mean!, median, median!, minabs, minabs!, minimum!, minmax, quantile!, realmax, std, stdm,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: