207 SUBROUTINE zsytrf_rook( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
215 INTEGER INFO, LDA, LWORK, N
219 COMPLEX*16 A( LDA, * ), WORK( * )
225 LOGICAL LQUERY, UPPER
226 INTEGER IINFO, IWS, J, K, KB, LDWORK, LWKOPT, NB, NBMIN
231 EXTERNAL lsame, ilaenv
244 upper = lsame( uplo,
'U' )
245 lquery = ( lwork.EQ.-1 )
246 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
248 ELSE IF( n.LT.0 )
THEN
250 ELSE IF( lda.LT.max( 1, n ) )
THEN
252 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
260 nb = ilaenv( 1,
'ZSYTRF_ROOK', uplo, n, -1, -1, -1 )
261 lwkopt = max( 1, n*nb )
266 CALL xerbla(
'ZSYTRF_ROOK', -info )
268 ELSE IF( lquery )
THEN
274 IF( nb.GT.1 .AND. nb.LT.n )
THEN
276 IF( lwork.LT.iws )
THEN
277 nb = max( lwork / ldwork, 1 )
278 nbmin = max( 2, ilaenv( 2,
'ZSYTRF_ROOK',
279 $ uplo, n, -1, -1, -1 ) )
309 $ ipiv, work, ldwork, iinfo )
320 IF( info.EQ.0 .AND. iinfo.GT.0 )
351 CALL zlasyf_rook( uplo, n-k+1, nb, kb, a( k, k ), lda,
352 $ ipiv( k ), work, ldwork, iinfo )
357 CALL zsytf2_rook( uplo, n-k+1, a( k, k ), lda, ipiv( k ),
364 IF( info.EQ.0 .AND. iinfo.GT.0 )
365 $ info = iinfo + k - 1
369 DO 30 j = k, k + kb - 1
370 IF( ipiv( j ).GT.0 )
THEN
371 ipiv( j ) = ipiv( j ) + k - 1
373 ipiv( j ) = ipiv( j ) - k + 1
subroutine xerbla(srname, info)
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 zsytrf_rook(uplo, n, a, lda, ipiv, work, lwork, info)
ZSYTRF_ROOK
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...