findmin(A,dims)

findmin(A, dims) -> (minval, index)

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

Examples

julia> findmin([3,0,11])
(0,2)
julia> findmin([3,11])
(3,1)

See Also

find, findfirst, findin, findlast, findmin, findn, findnext, findnz, findprev, rsearch, rsearchindex, searchsorted, searchsortedfirst, searchsortedlast, sort, sort!, sortcols, sortperm, sortperm!,

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: