function r83v_mv_test ( )

%*****************************************************************************80
%
%% R83V_MV_TEST tests R83V_MV.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83V_MV_TEST\n' );
  fprintf ( 1, '  R83V_MV computes b=A*x, where A is an R83V matrix.\n' );
  fprintf ( 1, '  We check three cases, M<N, M=N, M>N.\n' );

  for i = 1 : 3

    if ( i == 1 )
      m = 3;
      n = 5;
    elseif ( i == 2 )
      m = 5;
      n = 5;
    elseif ( i == 3 )
      m = 5;
      n = 3;
    end

    seed = 123456789;
    [ a_83v, b_83v, c_83v, seed ] = r83v_random ( m, n, seed );
    x = r8vec_indicator1 ( n );
    ax_83v = r83v_mv ( m, n, a_83v, b_83v, c_83v, x );
    a_ge = r83v_to_r8ge ( m, n, a_83v, b_83v, c_83v );
    ax_ge = r8ge_mv ( m, n, a_ge, x );
    r8vec2_print ( m, ax_83v, ax_ge, '  Product comparison:' );

  end

  return
end
