134 SUBROUTINE dpbt02( 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 A( LDA, * ), B( LDB, * ), RWORK( * ),
154 DOUBLE PRECISION ZERO, ONE
155 parameter( zero = 0.0d+0, one = 1.0d+0 )
159 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
162 DOUBLE PRECISION DASUM, DLAMCH, DLANSB
163 EXTERNAL dasum, dlamch, dlansb
175 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
182 eps = dlamch(
'Epsilon' )
183 anorm = dlansb(
'1', uplo, n, kd, a, lda, rwork )
184 IF( anorm.LE.zero )
THEN
192 CALL dsbmv( uplo, n, kd, -one, a, lda, x( 1, j ), 1, one,
201 bnorm = dasum( n, b( 1, j ), 1 )
202 xnorm = dasum( n, x( 1, j ), 1 )
203 IF( xnorm.LE.zero )
THEN
206 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine dpbt02(uplo, n, kd, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
DPBT02
subroutine dsbmv(uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)
DSBMV