134 SUBROUTINE spbt02( UPLO, N, KD, NRHS, A, LDA, X, LDX, B, LDB,
143 INTEGER KD, LDA, LDB, LDX, N, NRHS
147 REAL A( LDA, * ), B( LDB, * ), RWORK( * ),
155 parameter( zero = 0.0e+0, one = 1.0e+0 )
159 REAL ANORM, BNORM, EPS, XNORM
162 REAL SASUM, SLAMCH, SLANSB
163 EXTERNAL sasum, slamch, slansb
175 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
182 eps = slamch(
'Epsilon' )
183 anorm = slansb(
'1', uplo, n, kd, a, lda, rwork )
184 IF( anorm.LE.zero )
THEN
192 CALL ssbmv( uplo, n, kd, -one, a, lda, x( 1, j ), 1, one,
201 bnorm = sasum( n, b( 1, j ), 1 )
202 xnorm = sasum( n, x( 1, j ), 1 )
203 IF( xnorm.LE.zero )
THEN
206 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine ssbmv(uplo, n, k, alpha, a, lda, x, incx, beta, y, incy)
SSBMV
subroutine spbt02(uplo, n, kd, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
SPBT02