Example program for dtgevc

This example computes the α and β arguments, which defines the generalized eigenvalues and the corresponding left and right eigenvectors, of the matrix pair A,B given by
A = 1.0 1.0 1.0 1.0 1.0 2.0 4.0 8.0 16.0 32.0 3.0 9.0 27.0 81.0 243.0 4.0 16.0 64.0 256.0 1024.0 5.0 25.0 125.0 625.0 3125.0   and   B= 1.0 2.0 3.0 4.0 5.0 1.0 4.0 9.0 16.0 25.0 1.0 8.0 27.0 64.0 125.0 1.0 16.0 81.0 256.0 625.0 1.0 32.0 243.0 1024.0 3125.0 .  
To compute generalized eigenvalues, it is required to call five routines: dggbal to balance the matrix, dgeqrf to perform the QR factorization of B, dormqr to apply Q to A, dgghrd to reduce the matrix pair to the generalized Hessenberg form and dhgeqz to compute the eigenvalues via the QZ algorithm.
The computation of generalized eigenvectors is done by calling dtgevc to compute the eigenvectors of the balanced matrix pair. The routine dggbak is called to backward transform the eigenvectors to the user-supplied matrix pair. If both left and right eigenvectors are required then dggbak must be called twice.