126 SUBROUTINE dgbt01( M, N, KL, KU, A, LDA, AFAC, LDAFAC, IPIV, WORK,
135 INTEGER kl, ku, lda, ldafac, m, n
136 DOUBLE PRECISION resid
140 DOUBLE PRECISION a( lda, * ), afac( ldafac, * ), work( * )
146 DOUBLE PRECISION zero, one
147 parameter( zero = 0.0d+0, one = 1.0d+0 )
150 INTEGER i, i1, i2, il, ip, iw, j, jl, ju, jua, kd, lenj
151 DOUBLE PRECISION anorm, eps, t
161 INTRINSIC dble, max, min
168 IF( m.LE.0 .OR. n.LE.0 )
177 i1 = max( kd+1-j, 1 )
178 i2 = min( kd+m-j, kl+kd )
180 $ anorm = max( anorm,
dasum( i2-i1+1, a( i1, j ), 1 ) )
190 ju = min( kl+ku, j-1 )
192 lenj = min( m, j ) - j + ju + 1
194 CALL
dcopy( lenj, afac( kd-ju, j ), 1, work, 1 )
195 DO 20 i = lenj + 1, ju + jl + 1
202 DO 30 i = min( m-1, j ), j - ju, -1
207 CALL
daxpy( il, t, afac( kd+1, i ), 1, work( iw+1 ),
212 work( iw ) = work( ip )
222 $ CALL
daxpy( jua+jl+1, -one, a( ku+1-jua, j ), 1,
223 $ work( ju+1-jua ), 1 )
227 resid = max( resid,
dasum( ju+jl+1, work, 1 ) )
233 IF( anorm.LE.zero )
THEN
237 resid = ( ( resid / dble( n ) ) / anorm ) / eps