function colsum = r8col_sum ( m, n, a )

%*****************************************************************************80
%
%% r8col_sum() sums the columns of an R8COL.
%
%  Discussion:
%
%    An R8COL is an M by N array of R8's, regarded as an array of N columns,
%    each of length M.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 April 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns.
%
%    real A(M,N), the array to be examined.
%
%  Output:
%
%    real COLSUM(N), the sums of the columns.
%
  for j = 1 : n
    colsum(j) = sum ( a(1:m,j) );
  end

  return
end
