function i4row_max_test ( )

%*****************************************************************************80
%
%% I4ROW_MAX_TEST tests I4ROW_MAX.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 November 2014
%
%  Author:
%
%    John Burkardt
%
  m = 3;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4ROW_MAX_TEST\n' );
  fprintf ( 1, '  I4ROW_MAX computes row maximums;\n' );

  k = 0;
  for i = 1 : m
    for j = 1 : n
      k = k + 1;
      a(i,j) = k;
    end
  end

  i4mat_print ( m, n, a, '  The matrix:' );

  amax = i4row_max ( m, n, a );

  i4vec_print ( m, amax, '  Row maximums:' );

  return
end
