function r8mat_product_elementwise_test ( )

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

  m = 2;
  n = 3;

  a = [ 
    1.0, 2.0, 3.0; 
    4.0, 5.0, 6.0 ];

  b = [
    1.0, 3.0, 5.0;
    2.0, 4.0, 6.0 ];

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

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

  return
end
