function r83v_to_r8vec_test ( )

%*****************************************************************************80
%
%% R83V_TO_R8VEC_TEST tests R83V_TO_R8VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    20 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83V_TO_R8VEC_TEST\n' );
  fprintf ( 1, '  R83V_TO_R8VEC copies an R83V matrix to an R8VEC.\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

    na = min ( m - 1, n ) + min ( m, n ) + min ( m, n - 1 );
 
    [ a1, a2, a3 ] = r83v_indicator ( m, n );
    r83v_print ( m, n, a1, a2, a3, '  R83V matrix A:' );

    a = r83v_to_r8vec ( m, n, a1, a2, a3 );
    r8vec_print ( na, a, '  Vector version of A:' );

  end

  return
end
