function t_cholesky_upper_test ( )

%*****************************************************************************80
%
%% t_cholesky_upper_test() tests t_cholesky_upper().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 January 2017
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_cholesky_upper_test():\n' );
  fprintf ( 1, '  t_cholesky_upper() computes the upper Cholesky\n' );
  fprintf ( 1, '  factor of a positive semi-definite Toeplitz matrix.\n' );
  fprintf ( 1, '  The Toeplitz matrix is defined by its first row.\n' );

  n = 3;
  t = [ 1.0,   0.5, -0.375 ];

  r8vec_print ( n, t, '  First row of Toeplitz matrix T:' );

  r = t_cholesky_upper ( n, t );
  r8mat_print ( n, n, r, '  Computed upper Cholesky factor R:' );

  b = r' * r;
  r8mat_print ( n, n, b, '  Product R''R:' );

  return
end

