How to use findmax!?

Dear all,

Can you give me an example of how to use findmax!?

I don’t know much about it myself but you can look at the unit tests

julia> rval = zeros(); rind = zeros(Int);

julia> findmax!(rval, rind, [1:5; 4:-1:1])
(fill(5.0), fill(5))

julia> rval
0-dimensional Array{Float64, 0}:

julia> rind
0-dimensional Array{Int64, 0}:
1 Like

Thanks, This is helpful to me.