function r8row_compare_test ( )

%*****************************************************************************80
%
%% R8ROW_COMPARE_TEST tests R8ROW_COMPARE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    28 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8ROW_COMPARE_TEST\n' );
  fprintf ( 1, '  R8ROW_COMPARE compares rows of an R8ROW,\n' );
  fprintf ( 1, '  returning -1, 0 or +1 for comparison.\n' );

  m = 6;
  n = 5;
 
  a = zeros ( m, n );

  for j = 1 : n
    for i = 1 : m
      a(i,j) = mod ( i + j, 3 );
    end
  end

  r8row_print ( m, n, a, '  Matrix A:' );
  c = zeros ( m, m );

  for j = 1 : m
    for i = 1 : m
      c(i,j) = r8row_compare ( m, n, a, i, j );
    end
  end

  i4mat_print ( m, m, c, '  C(I,J) = Row I compare Row J:' );

  return
end
