function r8st_print_test ( )

%*****************************************************************************80
%
%% r8st_print_test() tests r8st_print().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    22 September 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8st_print_test():\n' );
  fprintf ( 1, '  r8st_print() prints an r8st matrix.\n' );

  m = 5;
  n = 5;
  nz_num = 3 * n - 2;

  [ row, col, a ] = r8st_dif2 ( m, n, nz_num );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order M         = %d\n', m );
  fprintf ( 1, '  Matrix order N         = %d\n', n );
  fprintf ( 1, '  Matrix nonzeros NZ_NUM = %d\n', nz_num );

  r8st_print ( m, n, nz_num, row, col, a, '  r8st matrix A:' );

  return
end
