139 SUBROUTINE sgbt02( TRANS, M, N, KL, KU, NRHS, A, LDA, X, LDX, B,
149 INTEGER KL, KU, LDA, LDB, LDX, M, N, NRHS
153 REAL A( lda, * ), B( ldb, * ), X( ldx, * )
160 parameter ( zero = 0.0e+0, one = 1.0e+0 )
163 INTEGER I1, I2, J, KD, N1
164 REAL ANORM, BNORM, EPS, XNORM
169 EXTERNAL lsame, sasum, slamch
181 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.LE.0 )
THEN
188 eps = slamch(
'Epsilon' )
192 i1 = max( kd+1-j, 1 )
193 i2 = min( kd+m-j, kl+kd )
194 anorm = max( anorm, sasum( i2-i1+1, a( i1, j ), 1 ) )
196 IF( anorm.LE.zero )
THEN
201 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
210 CALL sgbmv( trans, m, n, kl, ku, -one, a, lda, x( 1, j ), 1,
211 $ one, b( 1, j ), 1 )
219 bnorm = sasum( n1, b( 1, j ), 1 )
220 xnorm = sasum( n1, x( 1, j ), 1 )
221 IF( xnorm.LE.zero )
THEN
224 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine sgbmv(TRANS, M, N, KL, KU, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
SGBMV
subroutine sgbt02(TRANS, M, N, KL, KU, NRHS, A, LDA, X, LDX, B, LDB, RESID)
SGBT02