134 SUBROUTINE zpbt02( UPLO, N, KD, NRHS, A, LDA, X, LDX, B, LDB,
143 INTEGER KD, LDA, LDB, LDX, N, NRHS
144 DOUBLE PRECISION RESID
147 DOUBLE PRECISION RWORK( * )
148 COMPLEX*16 A( LDA, * ), B( LDB, * ), X( LDX, * )
154 DOUBLE PRECISION ZERO, ONE
155 parameter( zero = 0.0d+0, one = 1.0d+0 )
157 parameter( cone = ( 1.0d+0, 0.0d+0 ) )
161 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
164 DOUBLE PRECISION DLAMCH, DZASUM, ZLANHB
165 EXTERNAL dlamch, dzasum, zlanhb
177 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
184 eps = dlamch(
'Epsilon' )
185 anorm = zlanhb(
'1', uplo, n, kd, a, lda, rwork )
186 IF( anorm.LE.zero )
THEN
194 CALL zhbmv( uplo, n, kd, -cone, a, lda, x( 1, j ), 1, cone,
203 bnorm = dzasum( n, b( 1, j ), 1 )
204 xnorm = dzasum( n, x( 1, j ), 1 )
205 IF( xnorm.LE.zero )
THEN
208 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine zhbmv(uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)
ZHBMV
subroutine zpbt02(uplo, n, kd, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
ZPBT02