function i4mat_product_elementwise_test ( )

%*****************************************************************************80
%
%% I4MAT_PRODUCT_ELEMENTWISE_TEST tests I4MAT_PRODUCT_ELEMENTWISE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 March 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4MAT_PRODUCT_ELEMENTWISE_TEST\n' );
  fprintf ( 1, '  I4MAT_PRODUCT_ELEMENTWISE computes the elementwise\n' );
  fprintf ( 1, '  product of two I4MATs.\n' );

  m = 2;
  n = 3;

  a = [ 
    1, 2, 3; 
    4, 5, 6 ];

  b = [
    1, 3, 5;
    2, 4, 6 ];

  i4mat_print ( m, n, a, '  A:' );
  i4mat_print ( m, n, b, '  B:' );

  t = i4mat_product_elementwise ( m, n, a, b );
 
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Elementwise product = %d\n', t );

  return
end
