function sparse_interp_nd_test ( )

%*****************************************************************************80
%
%% sparse_interp_nd_test() tests sparse_interp_nd().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../r8lib' )
  addpath ( '../sparse_interp_nd' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'sparse_interp_nd_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test sparse_interp_nd().\n' );
  fprintf ( 1, '  The R8LIB library is also required.\n' );

  m = 1;
  sparse_max = 9;
  sparse_interp_nd_test01 ( m, sparse_max );

  m = 2;
  sparse_max = 9;
  sparse_interp_nd_test01 ( m, sparse_max );

  m = 3;
  sparse_max = 9;
  sparse_interp_nd_test01 ( m, sparse_max );

  m = 4;
  sparse_max = 7;
  sparse_interp_nd_test01 ( m, sparse_max );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'sparse_interp_nd_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../r8lib' )
  rmpath ( '../sparse_interp_nd' );

  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

