function r8row_sort_heap_a_test ( )

%*****************************************************************************80
%
%% R8ROW_SORT_HEAP_A_TEST tests R8ROW_SORT_HEAP_A.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 February 2016
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 4;
  b = 2.0;
  c = 10.0;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8ROW_SORT_HEAP_A_TEST\n' );
  fprintf ( 1, '  R8ROW_SORT_HEAP_A ascending sorts an R8ROW using heap sort.\n' );

  [ a, seed ] = r8row_uniform_ab ( m, n, b, c, seed );

  r8row_print ( m, n, a, '  Initial matrix:' );

  a = r8row_sort_heap_a ( m, n, a );

  r8row_print ( m, n, a, '  Rows of matrix ascending sorted:' );

  return
end
