function r8but_mv_test ( )

%*****************************************************************************80
%
%% R8BUT_MV_TEST tests R8BUT_MV.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 October 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  mu = 3;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8BUT_MV_TEST\n' );
  fprintf ( 1, '  R8BUT_MV computes b=A*x, where A is an R8BUT matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N     = %d\n', n );
  fprintf ( 1, '  Upper bandwidth MU = %d\n', mu );

  [ a, seed ] = r8but_random ( n, mu, seed );
  r8but_print ( n, mu, a, '  The R8BUT matrix:' );

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

  b = r8but_mv ( n, mu, a, x );
  r8vec_print ( n, b, '  b=A*x:' );

  return
end
