findmax(A, dims) -> (maxval, index)

For an array input, returns the value and index of the maximum over the given dimensions.


julia> findmax([13,10,11])
julia> findmax([3,0,11])

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

Checking you are not a robot: