function value = r8mat_mean ( m, n, a )

%*****************************************************************************80
%
%% R8MAT_MEAN returns the mean of an R8MAT.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 September 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows in A.
%
%    integer N, the number of columns in A.
%
%    real A(M,N), the matrix.
%
%  Output:
%
%    real VALUE, the mean of A.
%
  value = sum ( sum ( a(1:m,1:n) ) ) / m / n;

  return
end
