function r8mat_amax_test ( )

%*****************************************************************************80
%
%% r8mat_amax_test() tests r8mat_amax().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 3;

  b = -10.0;
  c = 10.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_AMAX_TEST\n' );
  fprintf ( 1, '  R8MAT_AMAX computes the maximum absolute value;\n' );
 
  a = b + ( c - b ) * rand ( m, n );

  r8mat_print ( m, n, a, '  Random array:' );
 
  temp = r8mat_amax ( m, n, a );

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

  return
end
