209 SUBROUTINE zsytrf_rook( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
218 INTEGER INFO, LDA, LWORK, N
222 COMPLEX*16 A( lda, * ), WORK( * )
228 LOGICAL LQUERY, UPPER
229 INTEGER IINFO, IWS, J, K, KB, LDWORK, LWKOPT, NB, NBMIN
234 EXTERNAL lsame, ilaenv
247 upper = lsame( uplo,
'U' )
248 lquery = ( lwork.EQ.-1 )
249 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
251 ELSE IF( n.LT.0 )
THEN
253 ELSE IF( lda.LT.max( 1, n ) )
THEN
255 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
263 nb = ilaenv( 1,
'ZSYTRF_ROOK', uplo, n, -1, -1, -1 )
264 lwkopt = max( 1, n*nb )
269 CALL xerbla(
'ZSYTRF_ROOK', -info )
271 ELSE IF( lquery )
THEN
277 IF( nb.GT.1 .AND. nb.LT.n )
THEN
279 IF( lwork.LT.iws )
THEN
280 nb = max( lwork / ldwork, 1 )
281 nbmin = max( 2, ilaenv( 2,
'ZSYTRF_ROOK',
282 $ uplo, n, -1, -1, -1 ) )
312 $ ipiv, work, ldwork, iinfo )
323 IF( info.EQ.0 .AND. iinfo.GT.0 )
354 CALL zlasyf_rook( uplo, n-k+1, nb, kb, a( k, k ), lda,
355 $ ipiv( k ), work, ldwork, iinfo )
360 CALL zsytf2_rook( uplo, n-k+1, a( k, k ), lda, ipiv( k ),
367 IF( info.EQ.0 .AND. iinfo.GT.0 )
368 $ info = iinfo + k - 1
372 DO 30 j = k, k + kb - 1
373 IF( ipiv( j ).GT.0 )
THEN
374 ipiv( j ) = ipiv( j ) + k - 1
376 ipiv( j ) = ipiv( j ) - k + 1
subroutine zsytrf_rook(UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO)
ZSYTRF_ROOK
subroutine zsytf2_rook(UPLO, N, A, LDA, IPIV, INFO)
ZSYTF2_ROOK computes the factorization of a complex symmetric indefinite matrix using the bounded Bun...
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zlasyf_rook(UPLO, N, NB, KB, A, LDA, IPIV, W, LDW, INFO)
ZLASYF_ROOK computes a partial factorization of a complex symmetric matrix using the bounded Bunch-Ka...