function r8ri_mtv_test ( )

%*****************************************************************************80
%
%% R8RI_MTV_TEST tests R8RI_MTV.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    07 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  nz = 11;

  a = [ ...
    3.0, 4.0, 5.0, 0.0, 8.0, ...
    0.0, 1.0, 7.0, 9.0, 2.0, ...
    6.0 ];
  ija = [ ...
     7,  8,  8, 10, 11, ...
    12,  3,  2,  4,  5, ...
     4 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8RI_MTV_TEST\n' );
  fprintf ( 1, '  R8RI_MTV computes b=A''*x, where A is an R8RI matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
  fprintf ( 1, '  Storage NZ =     %d\n', nz );

  r8ri_print ( n, nz, ija, a, '  The R8RI matrix:' );

  x = r8vec_indicator1 ( n );

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

  b = r8ri_mtv ( n, nz, ija, a, x );

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

  return
end
