136 SUBROUTINE zpbt02( UPLO, N, KD, NRHS, A, LDA, X, LDX, B, LDB,
146 INTEGER KD, LDA, LDB, LDX, N, NRHS
147 DOUBLE PRECISION RESID
150 DOUBLE PRECISION RWORK( * )
151 COMPLEX*16 A( lda, * ), B( ldb, * ), X( ldx, * )
157 DOUBLE PRECISION ZERO, ONE
158 parameter ( zero = 0.0d+0, one = 1.0d+0 )
160 parameter ( cone = ( 1.0d+0, 0.0d+0 ) )
164 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
167 DOUBLE PRECISION DLAMCH, DZASUM, ZLANHB
168 EXTERNAL dlamch, dzasum, zlanhb
180 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
187 eps = dlamch(
'Epsilon' )
188 anorm = zlanhb(
'1', uplo, n, kd, a, lda, rwork )
189 IF( anorm.LE.zero )
THEN
197 CALL zhbmv( uplo, n, kd, -cone, a, lda, x( 1, j ), 1, cone,
206 bnorm = dzasum( n, b( 1, j ), 1 )
207 xnorm = dzasum( n, x( 1, j ), 1 )
208 IF( xnorm.LE.zero )
THEN
211 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine zpbt02(UPLO, N, KD, NRHS, A, LDA, X, LDX, B, LDB, RWORK, RESID)
ZPBT02
subroutine zhbmv(UPLO, N, K, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
ZHBMV