function r8ge_to_r8utp_test ( )

%*****************************************************************************80
%
%% r8ge_to_r8utp_test() tests r8ge_to_r8utp().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 August 2022
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ge_to_r8utp_test():\n' );
  fprintf ( 1, '  r8ge_to_r8utp() converts an R8GE matrix to R8UTP format.\n' );

  a_ge = zeros ( m, n );
  for j = 1 : n
    for i = 1 : m
      a_ge(i,j) = 10 * i + j;
    end
  end

  fprintf ( 1, '\n' )
  fprintf ( 1, '  The R8GE matrix:\n' )
  disp ( a_ge );
 
  a_utp = r8ge_to_r8utp ( m, n, a_ge );

  r8utp_print ( m, n, a_utp, '  The R8UTP matrix:' );

  return
end
