166 SUBROUTINE zhetri_3( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
175 INTEGER INFO, LDA, LWORK, N
179 COMPLEX*16 A( LDA, * ), E( * ), WORK( * )
185 LOGICAL UPPER, LQUERY
191 EXTERNAL lsame, ilaenv
204 upper = lsame( uplo,
'U' )
205 lquery = ( lwork.EQ.-1 )
209 nb = max( 1, ilaenv( 1,
'ZHETRI_3', uplo, n, -1, -1, -1 ) )
210 lwkopt = ( n+nb+1 ) * ( nb+3 )
212 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
214 ELSE IF( n.LT.0 )
THEN
216 ELSE IF( lda.LT.max( 1, n ) )
THEN
218 ELSE IF ( lwork .LT. lwkopt .AND. .NOT.lquery )
THEN
223 CALL xerbla(
'ZHETRI_3', -info )
225 ELSE IF( lquery )
THEN
235 CALL zhetri_3x( uplo, n, a, lda, e, ipiv, work, nb, info )
subroutine zhetri_3(uplo, n, a, lda, e, ipiv, work, lwork, info)
ZHETRI_3
subroutine zhetri_3x(uplo, n, a, lda, e, ipiv, work, nb, info)
ZHETRI_3X