function x = r8row_to_r8vec ( m, n, a )

%*****************************************************************************80
%
%% r8row_to_r8vec() converts an R8ROW into an R8VEC.
%
%  Discussion:
%
%    An R8ROW is an M by N array of R8's, regarded as an array of M rows,
%    each of length N.
%
%  Example:
%
%    M = 3, N = 4
%
%    A =
%      11 12 13 14
%      21 22 23 24
%      31 32 33 34
%
%    X = ( 11, 12, 13, 14, 21, 22, 23, 24, 31, 32, 33, 34 )
%
%  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 array.
%
%  Output:
%
%    real X(M*N), a vector containing the M rows of A.
%
  j = 1;
  for i = 1 : m
    x(j:j+n-1) = a(i,1:n);
    j = j + n;
  end

  return
end
