function r8mat_max_test ( )

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

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_MAX_TEST\n' );
  fprintf ( 1, '  For a real matrix,\n' );
  fprintf ( 1, '  R8MAT_MAX computes the maximum value;\n' );
 
  a = 10.0 * rand ( m, n );
 
  r8mat_print ( m, n, a, '  Random array:' );
 
  temp = r8mat_max ( m, n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Maximum value = %f\n', temp );

  return
end
