function row_sum = r8row_sum ( m, n, a )

%*****************************************************************************80
%
%% r8row_sum() returns the sums of an R8ROW.
%
%  Discussion:
%
%    An R8ROW is an M by N array of R8's, regarded as an array of M rows,
%    each of length N.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 September 2006
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns.
%
%    real A(M,N), the R8ROW
%
%  Output:
%
%    real ROW_SUM(M), the sum of the entries of each row.
%
  for i = 1 : m
    row_sum(i) = sum ( a(i,1:n) );
  end

  return
end
