function r8ccs_dif2_test ( )

%*****************************************************************************80
%
%% r8ccs_dif2_test() tests r8ccs_dif2().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    01 October 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8ccs_dif2_test():\n' );
  fprintf ( 1, '  r8ccs_dif2() sets the second difference as an r8ccs matrix;\n' );

  m = 5;
  n = 5;
  if ( m == n )
    nz_num = 3 * m - 2;
  else
    nz_num = 3 * min ( m, n ) - 1;
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix rows M     = %d\n', m );
  fprintf ( 1, '  Matrix columns N  = %d\n', n );
  fprintf ( 1, '  Nonzeros NZ_NUM   = %d\n', nz_num );

  [ colptr, rowind, a ] = r8ccs_dif2 ( m, n, nz_num );

  r8ccs_print ( m, n, nz_num, colptr, rowind, a, '  The r8ccs matrix:' );

  return
end
