function r83_mtv_test ( )

%*****************************************************************************80
%
%% r83_mtv_test() tests r83_mtv().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 September 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83_MTV_TEST\n' );
  fprintf ( 1, '  R83_MV computes b=A''*x, where A is an R83 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

    a_83 = r83_random ( m, n );
    x = r8vec_indicator1 ( m );
    ax_83 = r83_mtv ( m, n, a_83, x );
    a_ge = r83_to_r8ge ( m, n, a_83 );
    ax_ge = r8ge_mtv ( m, n, a_ge, x );
    r8vec2_print ( ax_83, ax_ge, '  Product comparison:' );

  end

  return
end
