function r8sr_to_r8ge_test ( )

%*****************************************************************************80
%
%% R8SR_TO_R8GE_TEST tests R8SR_TO_R8GE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 June 2016
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  nz = 7;
  col = [ 2, 5, 5, 1, 1, 2, 3 ];
  row = [ 1, 3, 4, 5, 6, 8 ];
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8SR_TO_R8GE_TEST\n' );
  fprintf ( 1, '  R8SR_TO_R8GE converts an R8SR matrix to R8GE format.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
%
%  Set the matrix.
%
  [ diag, off, seed ] = r8sr_random ( n, nz, row, col, seed );
%
%  Print the matrix.
%
  r8sr_print ( n, nz, row, col, diag, off, '  The R8SR matrix:' );
%
%  Convert the matrix.
%
  a_r8ge = r8sr_to_r8ge ( n, nz, row, col, diag, off );
%
%  Print the R8GE matrix.
%
  r8ge_print ( n, n, a_r8ge, '  The R8GE matrix:' );

  return
end
