function r8ge_to_r83v_test ( )

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

    a = r8ge_indicator ( m, n );
    r8ge_print ( m, n, a, '  R8GE matrix A:' );

    [ a1, a2, a3 ] = r8ge_to_r83v ( m, n, a );
    r83v_print ( m, n, a1, a2, a3, '  R83V copy of (some of ) matrix A:' );

  end

  return
end