function b = r8ltt_mtv ( n, a, x )

%*****************************************************************************80
%
%% R8LTT_MTV computes b = A'*x, where A is an R8LTT matrix.
%
%  Discussion:
%
%    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(N), the matrix.
%
%    Input, real X(N), the vector to be multiplied by A.
%
%    Output, real B(N), the product A' * x.
%
  b = zeros ( n, 1 );

  for d = 1 : n
    for i = d : n
      j = i + 1 - d;
      b(j) = b(j) + a(i-j+1) * x(i);
    end
  end

  return
end
