168 SUBROUTINE ssytri_3( UPLO, N, A, LDA, E, IPIV, WORK, LWORK,
177 INTEGER INFO, LDA, LWORK, N
181 REAL 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,
'SSYTRI_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(
'SSYTRI_3', -info )
228 ELSE IF( lquery )
THEN
229 work( 1 ) = sroundup_lwork(lwkopt)
238 CALL ssytri_3x( uplo, n, a, lda, e, ipiv, work, nb, info )
240 work( 1 ) = sroundup_lwork(lwkopt)
subroutine xerbla(srname, info)
subroutine ssytri_3(uplo, n, a, lda, e, ipiv, work, lwork, info)
SSYTRI_3
subroutine ssytri_3x(uplo, n, a, lda, e, ipiv, work, nb, info)
SSYTRI_3X