function a_vm = r8ge_to_r8vm ( m, n, a_ge )

%*****************************************************************************80
%
%% R8GE_TO_R8VM copies an R8GE matrix to an R8VM matrix.
%
%  Discussion:
%
%    The R8VM storage format is used for an M by N Vandermonde matrix.
%    An M by N Vandermonde matrix is defined by the values in its second
%    row, which will be written here as X(1:N).  The matrix has a first 
%    row of 1's, a second row equal to X(1:N), a third row whose entries
%    are the squares of the X values, up to the M-th row whose entries
%    are the (M-1)th powers of the X values.  The matrix can be stored
%    compactly by listing just the values X(1:N).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 September 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, N, the number of rows and columns of the matrix.
%
%    Input, real A_GE(M,N), the R8GE matrix.
%
%    Output, real A_VM(N,1), the R8VM matrix.
%
  a_vm(1,1:n) = a_ge(2,1:n);

  a_vm = a_vm(:);

  return
end
