F07ATF (ZGEEQU) (PDF version)
F07 Chapter Contents
F07 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F07ATF (ZGEEQU)

Note:  before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.

 Contents

    1  Purpose
    7  Accuracy

1  Purpose

F07ATF (ZGEEQU) computes real diagonal scaling matrices DR  and DC  intended to equilibrate a complex m  by n  matrix A  and reduce its condition number.

2  Specification

SUBROUTINE F07ATF ( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX, INFO)
INTEGER  M, N, LDA, INFO
REAL (KIND=nag_wp)  R(M), C(N), ROWCND, COLCND, AMAX
COMPLEX (KIND=nag_wp)  A(LDA,*)
The routine may be called by its LAPACK name zgeequ.

3  Description

F07ATF (ZGEEQU) computes the diagonal scaling matrices. The diagonal scaling matrices are chosen to try to make the elements of largest absolute value in each row and column of the matrix B  given by
B=DRADC  
have absolute value 1. The diagonal elements of DR  and DC  are restricted to lie in the safe range δ,1/δ , where δ  is the value returned by routine X02AMF. Use of these scaling factors is not guaranteed to reduce the condition number of A  but works well in practice.

4  References

None.

5  Parameters

1:     M – INTEGERInput
On entry: m, the number of rows of the matrix A.
Constraint: M0.
2:     N – INTEGERInput
On entry: n, the number of columns of the matrix A.
Constraint: N0.
3:     ALDA* – COMPLEX (KIND=nag_wp) arrayInput
Note: the second dimension of the array A must be at least max1,N.
On entry: the matrix A whose scaling factors are to be computed.
4:     LDA – INTEGERInput
On entry: the first dimension of the array A as declared in the (sub)program from which F07ATF (ZGEEQU) is called.
Constraint: LDAmax1,M.
5:     RM – REAL (KIND=nag_wp) arrayOutput
On exit: if INFO=0 or INFO>M, R contains the row scale factors, the diagonal elements of DR. The elements of R will be positive.
6:     CN – REAL (KIND=nag_wp) arrayOutput
On exit: if INFO=0, C contains the column scale factors, the diagonal elements of DC. The elements of C will be positive.
7:     ROWCND – REAL (KIND=nag_wp)Output
On exit: if INFO=0 or INFO>M, ROWCND contains the ratio of the smallest value of Ri to the largest value of Ri. If ROWCND0.1 and AMAX is neither too large nor too small, it is not worth scaling by DR.
8:     COLCND – REAL (KIND=nag_wp)Output
On exit: if INFO=0, COLCND contains the ratio of the smallest value of Ci to the largest value of Ci.
If COLCND0.1, it is not worth scaling by DC.
9:     AMAX – REAL (KIND=nag_wp)Output
On exit: maxaij. If AMAX is very close to overflow or underflow, the matrix A should be scaled.
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.
INFO>0andINFOM
Row value of A is exactly zero.
INFO>M
Column value of A is exactly zero.

7  Accuracy

The computed scale factors will be close to the exact scale factors.

8  Parallelism and Performance

Not applicable.

9  Further Comments

The real analogue of this routine is F07AFF (DGEEQU).

10  Example

This example equilibrates the general matrix A  given by
A = -1.34+2.55i (0.28+3.17i×1010 ((-6.39-2.20i -1.70-1.41i (3.31-0.15i×1010 ((-0.15+1.34i (2.41+0.39i×10-10 -0.56+1.47i (-0.83-0.69i×10-10 .  
Details of the scaling factors, and the scaled matrix are output.

10.1  Program Text

Program Text (f07atfe.f90)

10.2  Program Data

Program Data (f07atfe.d)

10.3  Program Results

Program Results (f07atfe.r)


F07ATF (ZGEEQU) (PDF version)
F07 Chapter Contents
F07 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2015