function r8row_max_test ( )

%*****************************************************************************80
%
%% r8row_max_test() tests r8row_max();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
  m = 3;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8ROW_MAX_TEST():\n' );
  fprintf ( 1, '  R8ROW_MAX computes maximums of an R8ROW\n' );

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

  r8row_print ( m, n, a, '  The original matrix:' );

  amax = r8row_max ( m, n, a );

  r8vec_print ( m, amax, '  Row maximums:' )

  return
end
