function t_cholesky_lower_test ( )

%*****************************************************************************80
%
%% t_cholesky_lower_test() tests t_cholesky_lower().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 January 2017
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_cholesky_lower_test():\n' );
  fprintf ( 1, '  t_cholesky_lower() computes the lower 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:' );

  l = t_cholesky_lower ( n, t );
  r8mat_print ( n, n, l, '  Computed lower Cholesky factor L:' );

  b = l * l';
  r8mat_print ( n, n, b, '  Product L*L'':' );

  return
end

