function r8mat_flip_rows_test ( )

%*****************************************************************************80
%
%% R8MAT_FLIP_ROWS_TEST tests R8MAT_FLIP_ROWS.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_FLIP_ROWS_TEST\n' );
  fprintf ( 1, '  R8MAT_FLIP_ROWS "flips" the rows of a matrix;\n' );
 
  m = 5;
  n = 3;

  a = r8mat_indicator ( m, n );

  r8mat_print ( m, n, a, '  Matrix A:' );

  a2 = r8mat_flip_rows ( m, n, a );

  r8mat_print ( m, n, a2, '  Matrix after row flipping:' );

  return
end
