function a_ge = r8ltt_to_r8ge ( n, a_ltt )

%*****************************************************************************80
%
%% r8ltt_to_r8ge() copies an R8LTT matrix to an R8GE matrix.
%
%  Discussion:
%
%    The R8GE storage format is used for a general M by N matrix.  A storage 
%    space is made for each entry.  The two dimensional logical
%    array can be thought of as a vector of M*N entries, starting with
%    the M entries in the column 1, then the M entries in column 2
%    and so on.  Considered as a vector, the entry A(I,J) is then stored
%    in vector location I+(J-1)*M.
%
%    The R8LTT storage format is used for an N by N lower triangular Toeplitz
%    matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 November 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the order of the matrix.
%
%    Input, real A_LTT(N), the R8LTT matrix.
%
%    Output, real A_GE(N,N), the R8GE matrix.
%
  a_ge = zeros ( n, n );

  for d = 1 : n
    for i = d : n
      j = i + 1 - d;
      a_ge(i,j) = a_ltt(i-j+1);
    end
  end

  return
end
