183 SUBROUTINE zsytrf( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
192 INTEGER INFO, LDA, LWORK, N
196 COMPLEX*16 A( lda, * ), WORK( * )
202 LOGICAL LQUERY, UPPER
203 INTEGER IINFO, IWS, J, K, KB, LDWORK, LWKOPT, NB, NBMIN
208 EXTERNAL lsame, ilaenv
221 upper = lsame( uplo,
'U' )
222 lquery = ( lwork.EQ.-1 )
223 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
225 ELSE IF( n.LT.0 )
THEN
227 ELSE IF( lda.LT.max( 1, n ) )
THEN
229 ELSE IF( lwork.LT.1 .AND. .NOT.lquery )
THEN
237 nb = ilaenv( 1,
'ZSYTRF', uplo, n, -1, -1, -1 )
243 CALL xerbla(
'ZSYTRF', -info )
245 ELSE IF( lquery )
THEN
251 IF( nb.GT.1 .AND. nb.LT.n )
THEN
253 IF( lwork.LT.iws )
THEN
254 nb = max( lwork / ldwork, 1 )
255 nbmin = max( 2, ilaenv( 2,
'ZSYTRF', uplo, n, -1, -1, -1 ) )
284 CALL zlasyf( uplo, k, nb, kb, a, lda, ipiv, work, n, iinfo )
289 CALL zsytf2( uplo, k, a, lda, ipiv, iinfo )
295 IF( info.EQ.0 .AND. iinfo.GT.0 )
324 CALL zlasyf( uplo, n-k+1, nb, kb, a( k, k ), lda, ipiv( k ),
330 CALL zsytf2( uplo, n-k+1, a( k, k ), lda, ipiv( k ), iinfo )
336 IF( info.EQ.0 .AND. iinfo.GT.0 )
337 $ info = iinfo + k - 1
341 DO 30 j = k, k + kb - 1
342 IF( ipiv( j ).GT.0 )
THEN
343 ipiv( j ) = ipiv( j ) + k - 1
345 ipiv( j ) = ipiv( j ) - k + 1
subroutine zlasyf(UPLO, N, NB, KB, A, LDA, IPIV, W, LDW, INFO)
ZLASYF computes a partial factorization of a complex symmetric matrix using the Bunch-Kaufman diagona...
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zsytrf(UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO)
ZSYTRF
subroutine zsytf2(UPLO, N, A, LDA, IPIV, INFO)
ZSYTF2 computes the factorization of a real symmetric indefinite matrix, using the diagonal pivoting ...