function c = r8utt_mtm ( n, a, b )

%*****************************************************************************80
%
%% R8UTT_MTM computes C = A' * B, where A and B are R8UTT matrices.
%
%  Discussion:
%
%    The R8UTT storage format is used for an N by N upper triangular Toeplitz
%    matrix.
%
%    Note that the result C is a dense matrix, of type R8GE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 November 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the order of the matrices.
%
%    Input, real A(N), B(N), the factors.
%
%    Output, real C(N,N), the product.
%
  c = zeros ( n, n );

  for i = 1 : n
    for j = 1 : n
      for k = 1 : min ( i, j )
        c(i,j) = c(i,j) + a(i-k+1) * b(j-k+1);
      end
    end
  end

  return
end
