function r8sm_mtv_test ( )

%*****************************************************************************80
%
%% R8SM_MTV_TEST tests R8SM_MTV.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    30 May 2016
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8SM_MTV_TEST\n' );
  fprintf ( 1, '  R8SM_MTV computes A''*x=b, where A is an R8SM matrix;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  M = %d\n', m );
  fprintf ( 1, '  N = %d\n', n );

  [ a, u, v ] = r8sm_indicator ( m, n );

  r8sm_print ( m, n, a, u, v, '  The R8SM matrix:' );

  x = r8vec_indicator1 ( m );

  r8vec_print ( m, x, '  The vector x:' );

  b = r8sm_mtv ( m, n, a, u, v, x );

  r8vec_print ( n, b, '  The product b=A''*x:' );

  return
end
