function r8row_sum_test ( )

%*****************************************************************************80
%
%% r8row_sum_test() tests r8row_sum();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 March 2016
%
%  Author:
%
%    John Burkardt
%
  m = 3;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8ROW_SUM_TEST():\n' );
  fprintf ( 1, '  R8ROW_SUM computes sums of an R8ROW;\n' );

  k = 0;
  for i = 1 : m
    for j = 1 : n
      k = k + 1;
      a(i,j) = k;
    end
  end

  r8row_print ( m, n, a, '  The original matrix:' );

  rowsum = r8row_sum ( m, n, a );

  r8vec_print ( m, rowsum, '  Row sums:' );

  return
end
