function matrix_analyze_test ( )

%*****************************************************************************80
%
%% matrix_analyze_test() tests matrix_analyze().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../matrix_analyze' );

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

  m = 4;
  n = 4;
  a = dif2cyclic ( n );
  header = 'DIF2 Cyclic';
  r8mat_analyze ( m, n, a, header );

  m = 5;
  n = 4;
  a = exchange ( m, n );
  header = 'EXCHANGE';
  r8mat_analyze ( m, n, a, header );

  m = 4;
  n = 4;
  a = r8mat_identity ( m, n );
  header = 'Identity';
  r8mat_analyze ( m, n, a, header );

  m = 4;
  n = 4;
  a = ris ( n );
  header = 'RIS';
  r8mat_analyze ( m, n, a, header );

  m = 4;
  n = 4;
  a = cheby_t_inverse ( n );
  header = 'Chebyshev T Inverse';
  r8mat_analyze ( m, n, a, header );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'matrix_analyze_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../matrix_analyze' );

  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

