function r8sd_to_r8ge_test ( )

%*****************************************************************************80
%
%% R8SD_TO_R8GE_TEST tests R8SD_TO_R8GE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  ndiag = 3;
  offset = [ 0, 1, 3 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8SD_TO_R8GE_TEST\n' );
  fprintf ( 1, '  R8SD_TO_R8GE converts an R8SD matrix to R8GE format.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N =         %d\n', n );
  fprintf ( 1, '  Matrix diagonals NDIAG = %d\n', ndiag );

  a = r8sd_indicator ( n, ndiag, offset );

  r8sd_print ( n, ndiag, offset, a, '  The R8SD matrix:' );

  a_r8ge = r8sd_to_r8ge ( n, ndiag, offset, a );

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

  return
end
