125 SUBROUTINE checon( UPLO, N, A, LDA, IPIV, ANORM, RCOND, WORK,
140 COMPLEX a( lda, * ), work( * )
147 parameter( one = 1.0e+0, zero = 0.0e+0 )
172 upper =
lsame( uplo,
'U' )
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( anorm.LT.zero )
THEN
183 CALL
xerbla(
'CHECON', -info )
193 ELSE IF( anorm.LE.zero )
THEN
204 IF( ipiv( i ).GT.0 .AND. a( i, i ).EQ.zero )
212 IF( ipiv( i ).GT.0 .AND. a( i, i ).EQ.zero )
221 CALL
clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
226 CALL
chetrs( uplo, n, 1, a, lda, ipiv, work, n, info )
233 $ rcond = ( one / ainvnm ) / anorm