168 SUBROUTINE csytri_3( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
177 INTEGER INFO, LDA, LWORK, N
181 COMPLEX A( LDA, * ), E( * ), WORK( * )
187 LOGICAL UPPER, LQUERY
194 EXTERNAL lsame, ilaenv, sroundup_lwork
207 upper = lsame( uplo,
'U' )
208 lquery = ( lwork.EQ.-1 )
212 nb = max( 1, ilaenv( 1,
'CSYTRI_3', uplo, n, -1, -1, -1 ) )
213 lwkopt = ( n+nb+1 ) * ( nb+3 )
215 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
217 ELSE IF( n.LT.0 )
THEN
219 ELSE IF( lda.LT.max( 1, n ) )
THEN
221 ELSE IF ( lwork .LT. lwkopt .AND. .NOT.lquery )
THEN
226 CALL xerbla(
'CSYTRI_3', -info )
228 ELSE IF( lquery )
THEN
229 work( 1 ) = sroundup_lwork(lwkopt)
238 CALL csytri_3x( uplo, n, a, lda, e, ipiv, work, nb, info )
240 work( 1 ) = sroundup_lwork(lwkopt)
subroutine xerbla(srname, info)
subroutine csytri_3(uplo, n, a, lda, e, ipiv, work, lwork, info)
CSYTRI_3
subroutine csytri_3x(uplo, n, a, lda, e, ipiv, work, nb, info)
CSYTRI_3X