function r8utp_det_test ( )

%*****************************************************************************80
%
%% r8utp_det_test() tests r8utp_det().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 August 2022
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 5;
 
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8utp_det_test():\n' );
  fprintf ( 1, '  r8utp_det() computes the determinant of an R8UTP matrix.\n' );

  a = r8utp_zeros ( m, n );

  k = 1;
  for j = 1 : n
    for i = 1 : min ( j + 1, m )
      a(k) = k;
      k = k + 1;
    end
  end

  r8utp_print ( n, n, a, '  The matrix A:' );
%
%  Compute the determinant.
%
  det = r8utp_det ( m, n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Determinant is %g\n', det );

  return
end
