function value = i4vec_amax ( n, a )

%*****************************************************************************80
%
%% I4VEC_AMAX returns the largest magnitude in an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    14 May 2005
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the number of entries in the vector.
%
%    Input, integer A(N), the vector to be searched.
%
%    Output, integer VALUE, the value of the entry of largest magnitude.
%
  value = max ( abs ( a(1:n) ) );

  return
end
