function c = r8lt_mtm ( n, a, b )

%*****************************************************************************80
%
%% r8lt_mtm() computes C=A'*B for R8LT matrices.
%
%  Discussion:
%
%    The R8LT storage format is used for an M by N lower triangular matrix,
%    and sets aside storage even for the entries that must be zero.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 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 R8LT factor matrices.
%
%  Output:
%
%    real C(N,N), the R8LT product matrix.
%
  c(1:n,1:n) = 0.0;

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