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 MIT license.
%
%  Modified:
%
%    01 May 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows in A.
%
%    integer N, the number of columns in A.
%
%    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
