function sparse_grid_hw_test ( )

%*****************************************************************************80
%
%% sparse_grid_hw_test() tests sparse_grid_hw().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../sparse_grid_hw' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'sparse_grid_hw_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test sparse_grid_hw().\n' );

  cce_test ( );
  cce_sparse_test ( );

  ccl_test ( );
  ccl_sparse_test ( );

  ccs_test ( );
  ccs_sparse_test ( );

  get_seq_test ( );

  glo_test ( );
  glo_sparse_test ( );

  gqn_test ( );
  gqn_sparse_test ( );

  gqu_test ( );
  gqu_sparse_test ( );

  kpn_test ( );
  kpn_sparse_test ( );

  kpu_test ( );
  kpu_sparse_test ( );

  nwspgr_size_test ( );
  nwspgr_time_test ( );
  nwspgr_test ( );

  order_report ( );

  symmetric_sparse_size_test ( );

  tensor_product_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'sparse_grid_hw_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../sparse_grid_hw' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

