1CLAQHP(1) LAPACK auxiliary routine (version 3.2) CLAQHP(1)
2
3
4
6 CLAQHP - equilibrates a Hermitian matrix A using the scaling factors in
7 the vector S
8
10 SUBROUTINE CLAQHP( UPLO, N, AP, S, SCOND, AMAX, EQUED )
11
12 CHARACTER EQUED, UPLO
13
14 INTEGER N
15
16 REAL AMAX, SCOND
17
18 REAL S( * )
19
20 COMPLEX AP( * )
21
23 CLAQHP equilibrates a Hermitian matrix A using the scaling factors in
24 the vector S.
25
27 UPLO (input) CHARACTER*1
28 Specifies whether the upper or lower triangular part of the
29 Hermitian matrix A is stored. = 'U': Upper triangular
30 = 'L': Lower triangular
31
32 N (input) INTEGER
33 The order of the matrix A. N >= 0.
34
35 AP (input/output) COMPLEX array, dimension (N*(N+1)/2)
36 On entry, the upper or lower triangle of the Hermitian matrix
37 A, packed columnwise in a linear array. The j-th column of A
38 is stored in the array AP as follows: if UPLO = 'U', AP(i +
39 (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i +
40 (j-1)*(2n-j)/2) = A(i,j) for j<=i<=n. On exit, the equili‐
41 brated matrix: diag(S) * A * diag(S), in the same storage for‐
42 mat as A.
43
44 S (input) REAL array, dimension (N)
45 The scale factors for A.
46
47 SCOND (input) REAL
48 Ratio of the smallest S(i) to the largest S(i).
49
50 AMAX (input) REAL
51 Absolute value of largest matrix entry.
52
53 EQUED (output) CHARACTER*1
54 Specifies whether or not equilibration was done. = 'N': No
55 equilibration.
56 = 'Y': Equilibration was done, i.e., A has been replaced by
57 diag(S) * A * diag(S).
58
60 THRESH is a threshold value used to decide if scaling should be done
61 based on the ratio of the scaling factors. If SCOND < THRESH, scaling
62 is done. LARGE and SMALL are threshold values used to decide if scal‐
63 ing should be done based on the absolute size of the largest matrix
64 element. If AMAX > LARGE or AMAX < SMALL, scaling is done.
65
66
67
68 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008 CLAQHP(1)