function r8mat_house_pre_test ( )

%*****************************************************************************80
%
%% r8mat_house_pre_test() tests r8mat_house_pre().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_HOUSE_PRE_TEST\n' );
  fprintf ( 1, '  R8MAT_HOUSE_PRE computes a Householder premultiplier;\n' );
 
  a = 5.0 * rand ( n, n );
 
  r8mat_print ( n, n, a, '  Matrix A:' );

  row = 2;
  col = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  I = %d, J = %d\n', row, col );
 
  h = r8mat_house_pre ( n, a, row, col );
 
  r8mat_print ( n, n, h, '  Householder matrix H:' );
 
  ha = h * a;
 
  r8mat_print ( n, n, ha, '  Product H*A:' );
 
  return
end
