function c = r8ut_mtm ( n, a, b )

%*****************************************************************************80
%
%% r8ut_mtm() computes C = A' * B, where A and B are R8UT matrices.
%
%  Discussion:
%
%    The R8UT storage format is used for an M by N upper triangular 
%    matrix.  The format stores all M*N entries, even those which are zero.
%
%    The product C will NOT be an R8UT matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 August 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrices.
%    N must be positive.
%
%    real A(N,N), B(N,N), the factors.
%
%  Output:
%
%    real C(N,N), the product.
%
  c = zeros ( n, n );

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

  return
end
