function r8ncf_to_r8ge_test ( )

%*****************************************************************************80
%
%% R8NCF_TO_R8GE_TEST tests R8NCF_TO_R8GE.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    20 July 2016
%
%  Author:
%
%   John Burkardt
%
  m = 5;
  n = 7;
  nz_num = 15;

  rowcol = [ ...
    1, 1; ...
    2, 2; ...
    3, 3; ...
    4, 4; ...
    5, 5; ...
    2, 1; ...
    5, 1; ...
    1, 2; ...
    5, 2; ...
    1, 4; ...
    2, 4; ...
    3, 4; ...
    4, 5; ...
    4, 6; ...
    1, 7 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8NCF_TO_R8GE_TEST\n' );
  fprintf ( 1, '  R8NCF_TO_R8GE converts an R8NCF matrix to R8GE format;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix rows M =    %d\n', m );
  fprintf ( 1, '  Matrix columns N = %d\n', n );
  fprintf ( 1, '  Matrix nonzeros =  %d\n', nz_num );

  a = r8ncf_indicator ( m, n, nz_num, rowcol );

  r8ncf_print ( m, n, nz_num, rowcol, a, '  The R8NCF matrix:' );

  a_r8ge = r8ncf_to_r8ge ( m, n, nz_num, rowcol, a );

  r8ge_print ( m, n, a_r8ge, '  The R8GE matrix:' );


  return
end
