function r8mat_sum_test ( )

%*****************************************************************************80
%
%% r8mat_sum_test() tests r8mat_sum().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 July 2018
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 3;

  b = 0.0;
  c = 10.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_SUM_TEST\n' );
  fprintf ( 1, '  R8MAT_SUM sums all values in an R8MAT.\n' );
 
  a = 10.0 * rand ( m, n );
 
  r8mat_print ( m, n, a, '  Random array:' );
 
  value = r8mat_sum ( m, n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Sum of matrix entries = %f\n', value );

  return
end
