function value = i4mat_product_elementwise ( m, n, a, b )

%*****************************************************************************80
%
%% I4MAT_PRODUCT_ELEMENTWISE returns the elementwise produce to two I4MAT's.
%
%  Example:
%
%    A = [ 1, 2, 3;    B = [ 1, 3, 5;    product = 86
%          4, 5, 6 ]         2, 4, 6 ]
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 March 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows.
%
%    integer N, the number of columns.
%
%    integer A(M,N), B(M,N), the two matrices.
%
%  Output:
%
%    integer VALUE, the elementwise product of A and B.
%
  value = sum ( sum ( a .* b ) );

  return
end
