125 SUBROUTINE dspcon( UPLO, N, AP, IPIV, ANORM, RCOND, WORK, IWORK,
136 DOUBLE PRECISION anorm, rcond
139 INTEGER ipiv( * ), iwork( * )
140 DOUBLE PRECISION ap( * ), work( * )
146 DOUBLE PRECISION one, zero
147 parameter( one = 1.0d+0, zero = 0.0d+0 )
152 DOUBLE PRECISION ainvnm
169 upper =
lsame( uplo,
'U' )
170 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
172 ELSE IF( n.LT.0 )
THEN
174 ELSE IF( anorm.LT.zero )
THEN
178 CALL
xerbla(
'DSPCON', -info )
188 ELSE IF( anorm.LE.zero )
THEN
200 IF( ipiv( i ).GT.0 .AND. ap( ip ).EQ.zero )
210 IF( ipiv( i ).GT.0 .AND. ap( ip ).EQ.zero )
220 CALL
dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
225 CALL
dsptrs( uplo, n, 1, ap, ipiv, work, n, info )
232 $ rcond = ( one / ainvnm ) / anorm