function r8gb_mtv_test ( )

%*****************************************************************************80
%
%% R8GB_MTV_TEST tests R8GB_MTV.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 June 2016
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 5;
  ml = 1;
  mu = 2;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8GB_MTV_TEST\n' );
  fprintf ( 1, '  R8GB_MTV computes b=A''*x, where A is an R8GB matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix rows M       = %d\n', m );
  fprintf ( 1, '  Matrix columns N    = %d\n', n );
  fprintf ( 1, '  Lower bandwidth ML  = %d\n', ml );
  fprintf ( 1, '  Upper bandwidth MU  = %d\n', mu );

  seed = 123456789;
  [ a, seed ] = r8gb_random ( m, n, ml, mu, seed );
  r8gb_print ( m, n, ml, mu, a, '  The random R8GB matrix:' );

  x = r8vec_indicator1 ( m );
  r8vec_print ( m, x, '  x:' );

  b = r8gb_mtv ( m, n, ml, mu, a, x );
  r8vec_print ( n, b, '  b=A''*x:' );

  return
end
