116 SUBROUTINE zptt02( UPLO, N, NRHS, D, E, X, LDX, B, LDB, RESID )
125 INTEGER LDB, LDX, N, NRHS
126 DOUBLE PRECISION RESID
129 DOUBLE PRECISION D( * )
130 COMPLEX*16 B( ldb, * ), E( * ), X( ldx, * )
136 DOUBLE PRECISION ONE, ZERO
137 parameter ( one = 1.0d+0, zero = 0.0d+0 )
141 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
144 DOUBLE PRECISION DLAMCH, DZASUM, ZLANHT
145 EXTERNAL dlamch, dzasum, zlanht
164 anorm = zlanht(
'1', n, d, e )
168 eps = dlamch(
'Epsilon' )
169 IF( anorm.LE.zero )
THEN
176 CALL zlaptm( uplo, n, nrhs, -one, d, e, x, ldx, one, b, ldb )
183 bnorm = dzasum( n, b( 1, j ), 1 )
184 xnorm = dzasum( n, x( 1, j ), 1 )
185 IF( xnorm.LE.zero )
THEN
188 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine zlaptm(UPLO, N, NRHS, ALPHA, D, E, X, LDX, BETA, B, LDB)
ZLAPTM
subroutine zptt02(UPLO, N, NRHS, D, E, X, LDX, B, LDB, RESID)
ZPTT02