function i=argmax(v)
% argmax -  linear subscript of the largest element array.
%
% argmax :: [[Size]->A] -> 1..prod(Size) :- numeric(A).

[m i] = max(v(:));
