139 SUBROUTINE cgbt02( TRANS, M, N, KL, KU, NRHS, A, LDA, X, LDX, B,
149 INTEGER KL, KU, LDA, LDB, LDX, M, N, NRHS
153 COMPLEX A( lda, * ), B( ldb, * ), X( ldx, * )
160 parameter ( zero = 0.0e+0, one = 1.0e+0 )
162 parameter ( cone = ( 1.0e+0, 0.0e+0 ) )
165 INTEGER I1, I2, J, KD, N1
166 REAL ANORM, BNORM, EPS, XNORM
171 EXTERNAL lsame, scasum, slamch
183 IF( m.LE.0 .OR. n.LE.0 .OR. nrhs.LE.0 )
THEN
190 eps = slamch(
'Epsilon' )
194 i1 = max( kd+1-j, 1 )
195 i2 = min( kd+m-j, kl+kd )
196 anorm = max( anorm, scasum( i2-i1+1, a( i1, j ), 1 ) )
198 IF( anorm.LE.zero )
THEN
203 IF( lsame( trans,
'T' ) .OR. lsame( trans,
'C' ) )
THEN
212 CALL cgbmv( trans, m, n, kl, ku, -cone, a, lda, x( 1, j ), 1,
213 $ cone, b( 1, j ), 1 )
221 bnorm = scasum( n1, b( 1, j ), 1 )
222 xnorm = scasum( n1, x( 1, j ), 1 )
223 IF( xnorm.LE.zero )
THEN
226 resid = max( resid, ( ( bnorm/anorm )/xnorm )/eps )
subroutine cgbt02(TRANS, M, N, KL, KU, NRHS, A, LDA, X, LDX, B, LDB, RESID)
CGBT02
subroutine cgbmv(TRANS, M, N, KL, KU, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
CGBMV