function r8mat_l1_inverse_test ( )

%*****************************************************************************80
%
%% r8mat_l1_inverse_test() tests r8mat_l1_inverse().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 6;
%
%  Each row of this definition is a COLUMN of the matrix.
%
  a(1:n,1:n) = [ ...
     1.0, 2.0, 0.0, 5.0, 0.0, 75.0; ...
     0.0, 1.0, 0.0, 0.0, 0.0,  0.0; ...
     0.0, 0.0, 1.0, 3.0, 0.0,  0.0; ...
     0.0, 0.0, 0.0, 1.0, 0.0,  6.0; ...
     0.0, 0.0, 0.0, 0.0, 1.0,  4.0; ...
     0.0, 0.0, 0.0, 0.0, 0.0,  1.0 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_L1_INVERSE_TEST\n' );
  fprintf ( 1, '  R8MAT_L1_INVERSE inverts a unit lower triangular matrix.\n' );

  r8mat_print ( n, n, a, '  Matrix A to be inverted:' );
 
  b = r8mat_l1_inverse ( n, a );
 
  r8mat_print ( n, n, b, '  Inverse matrix B:' );
 
  c(1:n,1:n) = a(1:n,1:n) * b(1:n,1:n);

  r8mat_print ( n, n, c, '  Product C = A * B:' );

  return
end
