function value = i4mat_sum ( m, n, a )

%*****************************************************************************80
%
%% I4MAT_SUM returns the sum of the entries of an I4MAT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    01 May 2018
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, the number of rows in A.
%
%    Input, integer N, the number of columns in A.
%
%    Input, integer A(M,N), the M by N matrix.
%
%    Output, integer VALUE, the sum of the entries of A.
%
  value = sum ( sum ( a(1:m,1:n) ) );

  return
end
