124 SUBROUTINE chetri2( UPLO, N, A, LDA, IPIV, WORK, LWORK, INFO )
132 INTEGER INFO, LDA, LWORK, N
136 COMPLEX A( LDA, * ), WORK( * )
142 LOGICAL UPPER, LQUERY
143 INTEGER MINSIZE, NBMAX
149 EXTERNAL lsame, ilaenv, sroundup_lwork
159 upper = lsame( uplo,
'U' )
160 lquery = ( lwork.EQ.-1 )
164 nbmax = ilaenv( 1,
'CHETRF', uplo, n, -1, -1, -1 )
167 ELSE 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
184 CALL xerbla(
'CHETRI2', -info )
186 ELSE IF( lquery )
THEN
187 work( 1 ) = sroundup_lwork( minsize )
196 IF( nbmax.GE.n )
THEN
197 CALL chetri( uplo, n, a, lda, ipiv, work, info )
199 CALL chetri2x( uplo, n, a, lda, ipiv, work, nbmax, info )
subroutine chetri2(uplo, n, a, lda, ipiv, work, lwork, info)
CHETRI2
subroutine chetri2x(uplo, n, a, lda, ipiv, work, nb, info)
CHETRI2X
subroutine chetri(uplo, n, a, lda, ipiv, work, info)
CHETRI