128 SUBROUTINE zsytri2( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
137 INTEGER INFO, LDA, LWORK, N
141 COMPLEX*16 A( lda, * ), WORK( * )
147 LOGICAL UPPER, LQUERY
148 INTEGER MINSIZE, NBMAX
153 EXTERNAL lsame, ilaenv
163 upper = lsame( uplo,
'U' )
164 lquery = ( lwork.EQ.-1 )
166 nbmax = ilaenv( 1,
'ZSYTRF', uplo, n, -1, -1, -1 )
167 IF ( nbmax .GE. n )
THEN
170 minsize = (n+nbmax+1)*(nbmax+3)
173 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
175 ELSE IF( n.LT.0 )
THEN
177 ELSE IF( lda.LT.max( 1, n ) )
THEN
179 ELSE IF (lwork .LT. minsize .AND. .NOT.lquery )
THEN
187 CALL xerbla(
'ZSYTRI2', -info )
189 ELSE IF( lquery )
THEN
196 IF( nbmax .GE. n )
THEN
197 CALL zsytri( uplo, n, a, lda, ipiv, work, info )
199 CALL zsytri2x( uplo, n, a, lda, ipiv, work, nbmax, info )
subroutine zsytri(UPLO, N, A, LDA, IPIV, WORK, INFO)
ZSYTRI
subroutine zsytri2(UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO)
ZSYTRI2
subroutine zsytri2x(UPLO, N, A, LDA, IPIV, WORK, NB, INFO)
ZSYTRI2X
subroutine xerbla(SRNAME, INFO)
XERBLA