1CLAQGE(1) LAPACK auxiliary routine (version 3.1) CLAQGE(1)
2
3
4
6 CLAQGE - a general M by N matrix A using the row and column scaling
7 factors in the vectors R and C
8
10 SUBROUTINE CLAQGE( M, N, A, LDA, R, C, ROWCND, COLCND, AMAX, EQUED )
11
12 CHARACTER EQUED
13
14 INTEGER LDA, M, N
15
16 REAL AMAX, COLCND, ROWCND
17
18 REAL C( * ), R( * )
19
20 COMPLEX A( LDA, * )
21
23 CLAQGE equilibrates a general M by N matrix A using the row and column
24 scaling factors in the vectors R and C.
25
26
28 M (input) INTEGER
29 The number of rows of the matrix A. M >= 0.
30
31 N (input) INTEGER
32 The number of columns of the matrix A. N >= 0.
33
34 A (input/output) COMPLEX array, dimension (LDA,N)
35 On entry, the M by N matrix A. On exit, the equilibrated
36 matrix. See EQUED for the form of the equilibrated matrix.
37
38 LDA (input) INTEGER
39 The leading dimension of the array A. LDA >= max(M,1).
40
41 R (input) REAL array, dimension (M)
42 The row scale factors for A.
43
44 C (input) REAL array, dimension (N)
45 The column scale factors for A.
46
47 ROWCND (input) REAL
48 Ratio of the smallest R(i) to the largest R(i).
49
50 COLCND (input) REAL
51 Ratio of the smallest C(i) to the largest C(i).
52
53 AMAX (input) REAL
54 Absolute value of largest matrix entry.
55
56 EQUED (output) CHARACTER*1
57 Specifies the form of equilibration that was done. = 'N': No
58 equilibration
59 = 'R': Row equilibration, i.e., A has been premultiplied by
60 diag(R). = 'C': Column equilibration, i.e., A has been post‐
61 multiplied by diag(C). = 'B': Both row and column equilibra‐
62 tion, i.e., A has been replaced by diag(R) * A * diag(C).
63
65 THRESH is a threshold value used to decide if row or column scaling
66 should be done based on the ratio of the row or column scaling factors.
67 If ROWCND < THRESH, row scaling is done, and if COLCND < THRESH, column
68 scaling is done.
69
70 LARGE and SMALL are threshold values used to decide if row scaling
71 should be done based on the absolute size of the largest matrix ele‐
72 ment. If AMAX > LARGE or AMAX < SMALL, row scaling is done.
73
74
75
76 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006 CLAQGE(1)