function r8vec_to_r83v_test ( )

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

    ahi = min ( m - 1, n );
    bhi = min ( m,     n );
    chi = min ( m,     n - 1 );

    na = ahi + bhi + chi;

    a = r8vec_indicator1 ( na );
    r8vec_print ( na, a, '  R8VEC:' );

    [ a1, a2, a3 ] = r8vec_to_r83v ( m, n, a );
    r83v_print ( m, n, a1, a2, a3, '  R83V matrix:' );

  end

  return
end