function r8ge_mtm_test ( )

%*****************************************************************************80
%
%% r8ge_mtm_test() tests r8ge_mtm().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 February 2016
%
%  Author:
%
%    John Burkardt
%
  n1 = 4;
  n2 = 3;
  n3 = n1;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ge_mtm_test():\n' );
  fprintf ( 1, '  r8ge_mtm(): computes a matrix-matrix product C = A'' * B.\n' );

  for i = 1 : n2
    for j = 1 : n1

      if ( j == 1 )
        a(i,j) = 1.0;
      elseif ( i == 1 )
        a(i,j) = 0.0;
      else
        a(i,j) = a(i-1,j-1) + a(i-1,j);
      end

    end
  end

  b = a;

  c = r8ge_mtm ( n1, n2, n3, a, b );

  r8ge_transpose_print ( n2, n1, a, '  A'':' );
  r8ge_print ( n2, n3, b, '  B:' );
  r8ge_print ( n1, n3, c, '  C = A''*B:' );

  return
end
