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