This example computes all the eigenvalues and right eigenvectors of the matrix
, where
The program first calls
zgebal to balance the matrix; it then computes the Schur factorization of the balanced matrix, by reduction to Hessenberg form and the
algorithm. Then it calls
ztrevc to compute the right eigenvectors of the balanced matrix, and finally calls
zgebak to transform the eigenvectors back to eigenvectors of the original matrix
.