HQR
Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also
The HQR function returns all eigenvalues of an upper Hessenberg array. Using the output produced by the ELMHES function, this function finds all eigenvalues of the original real, nonsymmetric array.
HQR is based on the routine hqr described in section 11.6 of Numerical Recipes in C: The Art of Scientific Computing (Second Edition), published by Cambridge University Press, and is used by permission.
Note
If you are working with complex inputs, use the LA_HQR function instead.
Syntax
Result = HQR( A [, /COLUMN] [, /DOUBLE] )
Return Value
The result is an n-element complex vector.
Arguments
A
An n by n upper Hessenberg array. Typically, A would be an array resulting from an application of ELMHES.
Note
If HQR is complex then only the real part is used for the computation.
Keywords
COLUMN
Set this keyword if the input array A is in column-major format (composed of column vectors) rather than in row-major format (composed of row vectors).
DOUBLE
Set this keyword to force the computation to be done in double-precision arithmetic.
Examples
To compute the eigenvalues of a real, non-symmetric unbalanced array, first define the array A:
IDL prints:
This is the exact solution vector to five-decimal accuracy.
Version History
See Also
EIGENVEC, ELMHES, LA_HQR, TRIQL, TRIRED