function r8po_mm_test ( )

%*****************************************************************************80
%
%% R8PO_MM_TEST tests R8PO_MM.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 July 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8PO_MM_TEST\n' );
  fprintf ( 1, '  R8PO_MM computes the product of two\n' );
  fprintf ( 1, '  symmetric positive definite matrices.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
%
%  Set (the upper half of) matrix A.
%
  a = r8po_zeros ( n );

  for i = 1 : n
    a(i,i) = 2.0;
  end

  for i = 1 : n - 1
    a(i,i+1) = -1.0;
  end

  r8po_print ( n, a, '  Matrix A:' );
%
%  Set (the upper half of) matrix B.
%
  b = zeros ( n, n );

  for i = 1 : n
    b(i,i) = i + i - 1;
  end

  for i = 1 : n - 1
    b(i,i+1) = i + i + 1 - 1;
  end

  r8po_print ( n, b, '  Matrix B:' );
%
%  Compute the product.
%
  c = r8po_mm ( n, a, b );

  r8po_print ( n, c, '  Product matrix C = A * B:' );

  return
end
