function r8ncf_mv_test ( )

%*****************************************************************************80
%
%% R8NCF_MV_TEST tests R8NCF_MV.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    20 July 2016
%
%  Author:
%
%   John Burkardt
%
  m = 5;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8NCF_MV_TEST\n' );
  fprintf ( 1, '  R8NCF_MV computes b=A*x, where A is an R8NCF matrix;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix rows M =    %d\n', m );
  fprintf ( 1, '  Matrix columns N = %d\n', n );

  nz_num = r8ncf_dif2_nz_num ( m, n );

  fprintf ( 1, '  Matrix nonzeros =  %d\n', nz_num );

  rowcol = r8ncf_dif2_rowcol ( m, n, nz_num );

  a = r8ncf_dif2 ( m, n, nz_num, rowcol );

  r8ncf_print ( m, n, nz_num, rowcol, a, '  The R8NCF matrix:' );

  x = r8vec_indicator1 ( n );

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

  b = r8ncf_mv ( m, n, nz_num, rowcol, a, x );

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

  return
end
