142 SUBROUTINE cgbtf2( M, N, KL, KU, AB, LDAB, IPIV, INFO )
149 INTEGER INFO, KL, KU, LDAB, M, N
153 COMPLEX AB( LDAB, * )
160 parameter( one = ( 1.0e+0, 0.0e+0 ),
161 $ zero = ( 0.0e+0, 0.0e+0 ) )
164 INTEGER I, J, JP, JU, KM, KV
188 ELSE IF( n.LT.0 )
THEN
190 ELSE IF( kl.LT.0 )
THEN
192 ELSE IF( ku.LT.0 )
THEN
194 ELSE IF( ldab.LT.kl+kv+1 )
THEN
198 CALL xerbla(
'CGBTF2', -info )
204 IF( m.EQ.0 .OR. n.EQ.0 )
211 DO 20 j = ku + 2, min( kv, n )
212 DO 10 i = kv - j + 2, kl
222 DO 40 j = 1, min( m, n )
236 jp = icamax( km+1, ab( kv+1, j ), 1 )
237 ipiv( j ) = jp + j - 1
238 IF( ab( kv+jp, j ).NE.zero )
THEN
239 ju = max( ju, min( j+ku+jp-1, n ) )
244 $
CALL cswap( ju-j+1, ab( kv+jp, j ), ldab-1,
245 $ ab( kv+1, j ), ldab-1 )
250 CALL cscal( km, one / ab( kv+1, j ), ab( kv+2, j ),
256 $
CALL cgeru( km, ju-j, -one, ab( kv+2, j ), 1,
257 $ ab( kv, j+1 ), ldab-1, ab( kv+1, j+1 ),
subroutine cgbtf2(m, n, kl, ku, ab, ldab, ipiv, info)
CGBTF2 computes the LU factorization of a general band matrix using the unblocked version of the algo...
subroutine cgeru(m, n, alpha, x, incx, y, incy, a, lda)
CGERU