1ZLATBS(1)           LAPACK auxiliary routine (version 3.2)           ZLATBS(1)
2
3
4

NAME

6       ZLATBS - solves one of the triangular systems   A * x = s*b, A**T * x =
7       s*b, or A**H * x = s*b,
8

SYNOPSIS

10       SUBROUTINE ZLATBS( UPLO, TRANS, DIAG,  NORMIN,  N,  KD,  AB,  LDAB,  X,
11                          SCALE, CNORM, INFO )
12
13           CHARACTER      DIAG, NORMIN, TRANS, UPLO
14
15           INTEGER        INFO, KD, LDAB, N
16
17           DOUBLE         PRECISION SCALE
18
19           DOUBLE         PRECISION CNORM( * )
20
21           COMPLEX*16     AB( LDAB, * ), X( * )
22

PURPOSE

24       ZLATBS  solves  one  of  the triangular systems with scaling to prevent
25       overflow, where A is an upper or lower triangular band matrix.  Here A'
26       denotes  the  transpose of A, x and b are n-element vectors, and s is a
27       scaling factor, usually less than or equal to 1,  chosen  so  that  the
28       components  of  x  will  be  less  than the overflow threshold.  If the
29       unscaled problem will not cause overflow,  the  Level  2  BLAS  routine
30       ZTBSV  is called.  If the matrix A is singular (A(j,j) = 0 for some j),
31       then s is set to 0 and a non-trivial solution to A*x = 0 is returned.
32

ARGUMENTS

34       UPLO    (input) CHARACTER*1
35               Specifies whether the matrix A is upper or lower triangular.  =
36               'U':  Upper triangular
37               = 'L':  Lower triangular
38
39       TRANS   (input) CHARACTER*1
40               Specifies  the  operation  applied to A.  = 'N':  Solve A * x =
41               s*b     (No transpose)
42               = 'T':  Solve A**T * x = s*b  (Transpose)
43               = 'C':  Solve A**H * x = s*b  (Conjugate transpose)
44
45       DIAG    (input) CHARACTER*1
46               Specifies whether or not the matrix A is  unit  triangular.   =
47               'N':  Non-unit triangular
48               = 'U':  Unit triangular
49
50       NORMIN  (input) CHARACTER*1
51               Specifies  whether  CNORM  has  been set or not.  = 'Y':  CNORM
52               contains the column norms on entry
53               = 'N':  CNORM is not set on entry.  On exit, the norms will  be
54               computed and stored in CNORM.
55
56       N       (input) INTEGER
57               The order of the matrix A.  N >= 0.
58
59       KD      (input) INTEGER
60               The  number of subdiagonals or superdiagonals in the triangular
61               matrix A.  KD >= 0.
62
63       AB      (input) COMPLEX*16 array, dimension (LDAB,N)
64               The upper or lower triangular band  matrix  A,  stored  in  the
65               first KD+1 rows of the array. The j-th column of A is stored in
66               the j-th column of the array AB as  follows:  if  UPLO  =  'U',
67               AB(kd+1+i-j,j)  =  A(i,j) for max(1,j-kd)<=i<=j; if UPLO = 'L',
68               AB(1+i-j,j)    = A(i,j) for j<=i<=min(n,j+kd).
69
70       LDAB    (input) INTEGER
71               The leading dimension of the array AB.  LDAB >= KD+1.
72
73       X       (input/output) COMPLEX*16 array, dimension (N)
74               On entry, the right hand side b of the triangular  system.   On
75               exit, X is overwritten by the solution vector x.
76
77       SCALE   (output) DOUBLE PRECISION
78               The  scaling  factor  s  for the triangular system A * x = s*b,
79               A**T * x = s*b,  or  A**H * x = s*b.  If SCALE = 0, the  matrix
80               A  is singular or badly scaled, and the vector x is an exact or
81               approximate solution to A*x = 0.
82
83       CNORM   (input or output) DOUBLE PRECISION array, dimension (N)
84               If NORMIN = 'Y', CNORM is an input argument and  CNORM(j)  con‐
85               tains  the  norm of the off-diagonal part of the j-th column of
86               A.  If TRANS = 'N', CNORM(j) must be greater than or  equal  to
87               the  infinity-norm, and if TRANS = 'T' or 'C', CNORM(j) must be
88               greater than or equal to the 1-norm.  If NORMIN = 'N', CNORM is
89               an  output argument and CNORM(j) returns the 1-norm of the off‐
90               diagonal part of the j-th column of A.
91
92       INFO    (output) INTEGER
93               = 0:  successful exit
94               < 0:  if INFO = -k, the k-th argument had an illegal value
95

FURTHER DETAILS

97       A rough bound on x is computed; if that is less than overflow, ZTBSV is
98       called,  otherwise,  specific  code  is  used which checks for possible
99       overflow or divide-by-zero at every operation.
100       A columnwise scheme is used for solving A*x = b.  The  basic  algorithm
101       if A is lower triangular is
102            x[1:n] := b[1:n]
103            for j = 1, ..., n
104                 x(j) := x(j) / A(j,j)
105                 x[j+1:n] := x[j+1:n] - x(j) * A[j+1:n,j]
106            end
107       Define bounds on the components of x after j iterations of the loop:
108          M(j) = bound on x[1:j]
109          G(j) = bound on x[j+1:n]
110       Initially, let M(0) = 0 and G(0) = max{x(i), i=1,...,n}.
111       Then for iteration j+1 we have
112          M(j+1) <= G(j) / | A(j+1,j+1) |
113          G(j+1) <= G(j) + M(j+1) * | A[j+2:n,j+1] |
114                 <= G(j) ( 1 + CNORM(j+1) / | A(j+1,j+1) | )
115       where  CNORM(j+1) is greater than or equal to the infinity-norm of col‐
116       umn j+1 of A, not counting the diagonal.  Hence
117          G(j) <= G(0) product ( 1 + CNORM(i) / | A(i,i) | )
118                       1<=i<=j
119       and
120          |x(j)| <= ( G(0) / |A(j,j)| ) product ( 1 + CNORM(i) / |A(i,i)| )
121                                        1<=i< j
122       Since |x(j)| <= M(j), we use the Level 2  BLAS  routine  ZTBSV  if  the
123       reciprocal of the largest M(j), j=1,..,n, is larger than
124       max(underflow, 1/overflow).
125       The  bound on x(j) is also used to determine when a step in the column‐
126       wise method can be performed without fear of overflow.  If the computed
127       bound  is  greater  than a large constant, x is scaled to prevent over‐
128       flow, but if the bound overflows, x is set to 0, x(j) to 1,  and  scale
129       to  0,  and  a  non-trivial solution to A*x = 0 is found.  Similarly, a
130       row-wise scheme is used to solve A**T *x = b  or  A**H  *x  =  b.   The
131       basic algorithm for A upper triangular is
132            for j = 1, ..., n
133                 x(j) := ( b(j) - A[1:j-1,j]' * x[1:j-1] ) / A(j,j)
134            end
135       We simultaneously compute two bounds
136            G(j) = bound on ( b(i) - A[1:i-1,i]' * x[1:i-1] ), 1<=i<=j
137            M(j) = bound on x(i), 1<=i<=j
138       The initial values are G(0) = 0, M(0) = max{b(i), i=1,..,n}, and we add
139       the constraint G(j) >= G(j-1) and M(j) >= M(j-1) for j >= 1.  Then  the
140       bound on x(j) is
141            M(j) <= M(j-1) * ( 1 + CNORM(j) ) / | A(j,j) |
142                 <= M(0) * product ( ( 1 + CNORM(i) ) / |A(i,i)| )
143                           1<=i<=j
144       and we can safely call ZTBSV if 1/M(n) and 1/G(n) are both greater than
145       max(underflow, 1/overflow).
146
147
148
149 LAPACK auxiliary routine (versionNo3v.e2m)ber 2008                       ZLATBS(1)
Impressum