The MIT License (MIT)

Copyright (c) 2016,
Micol Ferranti,
Bruno Iannazzo,
Thomas Mach,
Raf Vandebril.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This is package of MATLAB functions for computing the Schurform of Hamiltonian
matrices in extended Hamiltonian Hessenberg form. The algoritm is described in
"An extended Hamiltonian QR algorithm" by Micol Ferranti, Bruno Iannazzo, Thomas
Mach, Raf Vandebril. The files starting with 'experiment_' are scripts running
the experiments that have been included in the paper.

The script experiment_table_3_3_carex requires CAREX, a package of examples of
Hamiltonian problems. CAREX can be downloaded from
http://www.mpi-magdeburg.mpg.de/1094189/hapack   
or from
https://www2.mpi-magdeburg.mpg.de/mpcsc/benner/pub/Software/CAREX/carex_m.tar.gz
or obtained from Peter Benner's website (MPI Magdeburg).

The subfolder /reduction/ contains MATLAB functions for reducing a Hamiltonian
matrix to extended Hamiltonian Hessenberg form. The algorithm has been described
in "An extended Hessenberg form for Hamiltonian matrices" by Micol Ferranti,
Bruno Iannazzo, Thomas Mach, Raf Vandebril (Calcolo, DOI:
10.1007/s10092-016-0192-1).

Some of the functions, e.g., z_rot3_vec3gen, z_rot3_vec4gen, d_rot2_vec2gen,
z_rot3_turnover, are MATLAB versions of the corresponding eiscor functions.
eiscor (https://github.com/eiscor/eiscor/) has been also published under MIT
License by
Copyright (c) 2014,
Jared L. Aurentz,
Thomas Mach,
Raf Vandebril,
David S. Watkins.

Some other functions, Fusion, GivensR2, ST, STlr4b, ConsMatLeft, ConsMatRight,
PyramidQR, have been published by Raf Vandebril as CAPAC or are modifications of
such functions.

The function aca_sym.m has been written for the paper "Adaptive cross
approximation for ill-posed problems" by T. Mach, L. Reichel, M. Van Barel,
R. Vandebril; Journal of Computational and Applied Mathematics, Vol 303,
Sept. 2016, pp. 206--217.
The function is used to find a rank-1 factorization of F. Originally the
function was intended to find low-rank approximations for large matrices via
adaptive cross approximation. However, if a matrix is exactly of low rank then
adaptive cross approxiamtion will find the exact low-rank factorization.