NAG Library Routine Document

f08njf  (dgebak)

 Contents

    1  Purpose
    7  Accuracy
    10  Example

1
Purpose

f08njf (dgebak) transforms eigenvectors of a balanced matrix to those of the original real nonsymmetric matrix.

2
Specification

Fortran Interface
Subroutine f08njf ( job, side, n, ilo, ihi, scale, m, v, ldv, info)
Integer, Intent (In):: n, ilo, ihi, m, ldv
Integer, Intent (Out):: info
Real (Kind=nag_wp), Intent (In):: scale(*)
Real (Kind=nag_wp), Intent (Inout):: v(ldv,*)
Character (1), Intent (In):: job, side
C Header Interface
#include nagmk26.h
void  f08njf_ ( const char *job, const char *side, const Integer *n, const Integer *ilo, const Integer *ihi, const double scal[], const Integer *m, double v[], const Integer *ldv, Integer *info, const Charlen length_job, const Charlen length_side)
The routine may be called by its LAPACK name dgebak.

3
Description

f08njf (dgebak) is intended to be used after a real nonsymmetric matrix A has been balanced by f08nhf (dgebal), and eigenvectors of the balanced matrix A22 have subsequently been computed.
For a description of balancing, see the document for f08nhf (dgebal). The balanced matrix A is obtained as A=DPAPTD-1, where P is a permutation matrix and D is a diagonal scaling matrix. This routine transforms left or right eigenvectors as follows:

4
References

None.

5
Arguments

1:     job – Character(1)Input
On entry: this must be the same argument job as supplied to f08nhf (dgebal).
Constraint: job='N', 'P', 'S' or 'B'.
2:     side – Character(1)Input
On entry: indicates whether left or right eigenvectors are to be transformed.
side='L'
The left eigenvectors are transformed.
side='R'
The right eigenvectors are transformed.
Constraint: side='L' or 'R'.
3:     n – IntegerInput
On entry: n, the number of rows of the matrix of eigenvectors.
Constraint: n0.
4:     ilo – IntegerInput
5:     ihi – IntegerInput
On entry: the values ilo and ihi, as returned by f08nhf (dgebal).
Constraints:
  • if n>0, 1 ilo ihi n ;
  • if n=0, ilo=1 and ihi=0.
6:     scale* – Real (Kind=nag_wp) arrayInput
Note: the dimension of the array scale must be at least max1,n.
On entry: details of the permutations and/or the scaling factors used to balance the original real nonsymmetric matrix, as returned by f08nhf (dgebal).
7:     m – IntegerInput
On entry: m, the number of columns of the matrix of eigenvectors.
Constraint: m0.
8:     vldv* – Real (Kind=nag_wp) arrayInput/Output
Note: the second dimension of the array v must be at least max1,m.
On entry: the matrix of left or right eigenvectors to be transformed.
On exit: the transformed eigenvectors.
9:     ldv – IntegerInput
On entry: the first dimension of the array v as declared in the (sub)program from which f08njf (dgebak) is called.
Constraint: ldv max1,n .
10:   info – IntegerOutput
On exit: info=0 unless the routine detects an error (see Section 6).

6
Error Indicators and Warnings

info<0
If info=-i, argument i had an illegal value. An explanatory message is output, and execution of the program is terminated.

7
Accuracy

The errors are negligible.

8
Parallelism and Performance

f08njf (dgebak) 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.

9
Further Comments

The total number of floating-point operations is approximately proportional to nm.
The complex analogue of this routine is f08nwf (zgebak).

10
Example

See Section 10 in f08nhf (dgebal).
© The Numerical Algorithms Group Ltd, Oxford, UK. 2017