function i4mat_row_swap_test ( )

%*****************************************************************************80
%
%% I4MAT_ROW_SWAP_TEST tests I4MAT_ROW_SWAP.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    02 September 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4MAT_ROW_SWAP_TEST\n' );
  fprintf ( 1, '  I4MAT_ROW_SWAP swaps two rows of an I4MAT.\n' );

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

  i4mat_print ( m, n, a, '  Input A:' );

  i1 = 2;
  i2 = 5;
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Swap rows %d and %d\n', i1, i2 );

  a = i4mat_row_swap ( m, n, a, i1, i2 );

  i4mat_print ( m, n, a, '  Modified matrix:' );

  return
end
