124 SUBROUTINE zhetri2( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
132 INTEGER INFO, LDA, LWORK, N
136 COMPLEX*16 A( LDA, * ), WORK( * )
142 LOGICAL UPPER, LQUERY
143 INTEGER MINSIZE, NBMAX
148 EXTERNAL lsame, ilaenv
158 upper = lsame( uplo,
'U' )
159 lquery = ( lwork.EQ.-1 )
163 nbmax = ilaenv( 1,
'ZHETRF', uplo, n, -1, -1, -1 )
166 ELSE IF( nbmax.GE.n )
THEN
169 minsize = (n+nbmax+1)*(nbmax+3)
172 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
174 ELSE IF( n.LT.0 )
THEN
176 ELSE IF( lda.LT.max( 1, n ) )
THEN
178 ELSE IF( lwork.LT.minsize .AND. .NOT.lquery )
THEN
183 CALL xerbla(
'ZHETRI2', -info )
185 ELSE IF( lquery )
THEN
195 IF( nbmax.GE.n )
THEN
196 CALL zhetri( uplo, n, a, lda, ipiv, work, info )
198 CALL zhetri2x( uplo, n, a, lda, ipiv, work, nbmax, info )
subroutine zhetri2(uplo, n, a, lda, ipiv, work, lwork, info)
ZHETRI2
subroutine zhetri2x(uplo, n, a, lda, ipiv, work, nb, info)
ZHETRI2X
subroutine zhetri(uplo, n, a, lda, ipiv, work, info)
ZHETRI