function r8ccs_mtv_test ( )

%*****************************************************************************80
%
%% r8ccs_mtv_test tests r8ccs_mtv.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 October 2015
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 5;
  nz_num = 12;
  colptr = [ 1, 4, 6, 8, 10, 13 ];
  rowind = [ 1, 2, 4, 1, 2, 3, 5, 4, 5, 1, 2, 5 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ccs_mtv_test\n' );
  fprintf ( 1, '  r8ccs_mtv computes b=A''*x, where A is an r8ccs matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix rows M =          %d\n', m );
  fprintf ( 1, '  Matrix columns N =       %d\n', n );
  fprintf ( 1, '  Matrix nonzeros NZ_NUM = %d\n', nz_num );
%
%  Set the matrix.
%
  a = r8ccs_random ( m, n, nz_num, colptr, rowind );
  r8ccs_print ( m, n, nz_num, colptr, rowind, a, '  The r8ccs matrix A:' );

  x(1) = 1.0;
  x(2:n-1) = 0.0;
  x(n) = -1.0;

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

  b = r8ccs_mtv ( m, n, nz_num, colptr, rowind, a, x );

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

  return
end
