function s = r8row_running_sum ( m, n, v )

%*****************************************************************************80
%
%% R8ROW_RUNNING_SUM computes the running sum 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 GNU LGPL license.
%
%  Modified:
%
%    23 February 2016
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, the number of rows.
%
%    Input, integer N, the number of items in each row.
%
%    Input, real V(M,N), the data.
%
%    Output, real S(M,N+1), the running sums.  S(I,J) is the sum
%    of V(i,1:J-1).
%
  s = zeros ( m, n + 1 );
%
%  Sum.
%
  for j = 2 : n + 1
    s(1:m,j) = s(1:m,j-1) + v(1:m,j-1);
  end

  return
end
