134 SUBROUTINE cpbt02( UPLO, N, KD, NRHS, A, LDA, X, LDX, B, LDB,
143 INTEGER KD, LDA, LDB, LDX, N, NRHS
148 COMPLEX A( LDA, * ), B( LDB, * ), X( LDX, * )
155 parameter( zero = 0.0e+0, one = 1.0e+0 )
157 parameter( cone = ( 1.0e+0, 0.0e+0 ) )
161 REAL ANORM, BNORM, EPS, XNORM
164 REAL CLANHB, SCASUM, SLAMCH
165 EXTERNAL clanhb, scasum, slamch
177 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
184 eps = slamch(
'Epsilon' )
185 anorm = clanhb(
'1', uplo, n, kd, a, lda, rwork )
186 IF( anorm.LE.zero )
THEN
194 CALL chbmv( uplo, n, kd, -cone, a, lda, x( 1, j ), 1, cone,
203 bnorm = scasum( n, b( 1, j ), 1 )
204 xnorm = scasum( n, x( 1, j ), 1 )
205 IF( xnorm.LE.zero )
THEN
208 resid = max( resid, ( ( bnorm/anorm )/xnorm )/eps )
subroutine cpbt02(uplo, n, kd, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
CPBT02
subroutine chbmv(uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)
CHBMV