function error_frobenius = r8mat_is_symmetric ( m, n, a )

%*****************************************************************************80
%
%% r8mat_is_symmetric() checks a real matrix for symmetry.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns of A.
%
%    real A(M,N), the matrix.
%
%  Output:
%
%    real ERROR_FROBENIUS, measures the Frobenius norm of ( A - A' ).
%
  if ( m ~= n )
    error_frobenius = realmax ( );
  else
    error_frobenius = sqrt ( sum ( sum ( ( abs ( a - a' ) ).^2 ) ) );
  end

  return
end
