The routine may be called by the names f08nwf, nagf_lapackeig_zgebak or its LAPACK name zgebak.
f08nwf is intended to be used after a complex general matrix has been balanced by f08nvf, and eigenvectors of the balanced matrix have subsequently been computed.
For a description of balancing, see the document for f08nvf. The balanced matrix is obtained as , where is a permutation matrix and is a diagonal scaling matrix. This routine transforms left or right eigenvectors as follows:
if is a right eigenvector of , is a right eigenvector of ;
if is a left eigenvector of , is a left eigenvector of .
1: – Character(1)Input
On entry: this must be the same argument job as supplied to f08nvf.
, , or .
2: – Character(1)Input
On entry: indicates whether left or right eigenvectors are to be transformed.
The left eigenvectors are transformed.
The right eigenvectors are transformed.
3: – IntegerInput
On entry: , the number of rows of the matrix of eigenvectors.
Note: the dimension of the array scale
must be at least
On entry: details of the permutations and/or the scaling factors used to balance the original complex general matrix, as returned by f08nvf.
7: – IntegerInput
On entry: , the number of columns of the matrix of eigenvectors.
8: – Complex (Kind=nag_wp) arrayInput/Output
Note: the second dimension of the array v
must be at least
On entry: the matrix of left or right eigenvectors to be transformed.
On exit: the transformed eigenvectors.
9: – IntegerInput
On entry: the first dimension of the array v as declared in the (sub)program from which f08nwf is called.
10: – IntegerOutput
On exit: unless the routine detects an error (see Section 6).
6Error Indicators and Warnings
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
The errors are negligible.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
f08nwf makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
The total number of real floating-point operations is approximately proportional to .