function value = r8mat_norm_rms ( m, n, a )

%*****************************************************************************80
%
%% r8mat_norm_rms() returns the RMS norm of an R8MAT.
%
%  Discussion:
%
%    The matrix RMS norm is defined as:
%
%      value = 
%        sqrt ( sum ( 1 <= J <= N ) sum ( 1 <= I <= M ) A(I,J)^2 / M / N ).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 December 2011
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the dimensions of the array.
%
%    real A(M,N), the array.
%
%  Output:
%
%    real VALUE, the RMS norm.
%
  value = sqrt ( sum ( sum ( a(1:m,1:n).^2 ) ) / m / n );

  return
end
