function i4vec_dot_product_test ( )

%*****************************************************************************80
%
%% i4vec_dot_product_test() tests i4vec_dot_product().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_dot_product_test():\n' );
  fprintf ( 1, '  i4vec_dot_product() computes the dot product of two I4VECs.\n' );

  n = 5;
  a = randi ( [ 0, 10 ], n, 1 );
  b = randi ( [ 0, 10 ], n, 1 );
 
  i4vec_print ( n, a, '  The vector A:' );
  i4vec_print ( n, b, '  The vector B:' );

  d = i4vec_dot_product ( n, a, b );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The dot product is %d\n', d );

  return
end
