122 SUBROUTINE zgtt02( TRANS, N, NRHS, DL, D, DU, X, LDX, B, LDB,
131 INTEGER LDB, LDX, N, NRHS
132 DOUBLE PRECISION RESID
135 COMPLEX*16 B( LDB, * ), D( * ), DL( * ), DU( * ),
142 DOUBLE PRECISION ONE, ZERO
143 parameter( one = 1.0d+0, zero = 0.0d+0 )
147 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
151 DOUBLE PRECISION DLAMCH, DZASUM, ZLANGT
152 EXTERNAL lsame, dlamch, dzasum, zlangt
165 IF( n.LE.0 .OR. nrhs.EQ.0 )
171 IF( lsame( trans,
'N' ) )
THEN
172 anorm = zlangt(
'1', n, dl, d, du )
174 anorm = zlangt(
'I', n, dl, d, du )
179 eps = dlamch(
'Epsilon' )
180 IF( anorm.LE.zero )
THEN
187 CALL zlagtm( trans, n, nrhs, -one, dl, d, du, x, ldx, one, b,
191 bnorm = dzasum( n, b( 1, j ), 1 )
192 xnorm = dzasum( n, x( 1, j ), 1 )
193 IF( xnorm.LE.zero )
THEN
196 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine zlagtm(trans, n, nrhs, alpha, dl, d, du, x, ldx, beta, b, ldb)
ZLAGTM performs a matrix-matrix product of the form C = αAB+βC, where A is a tridiagonal matrix,...
subroutine zgtt02(trans, n, nrhs, dl, d, du, x, ldx, b, ldb, resid)
ZGTT02