120 SUBROUTINE zptcon( N, D, E, ANORM, RCOND, RWORK, INFO )
129 DOUBLE PRECISION anorm, rcond
132 DOUBLE PRECISION d( * ), rwork( * )
139 DOUBLE PRECISION one, zero
140 parameter( one = 1.0d+0, zero = 0.0d+0 )
144 DOUBLE PRECISION ainvnm
163 ELSE IF( anorm.LT.zero )
THEN
167 CALL
xerbla(
'ZPTCON', -info )
177 ELSE IF( anorm.EQ.zero )
THEN
199 rwork( i ) = one + rwork( i-1 )*abs( e( i-1 ) )
204 rwork( n ) = rwork( n ) / d( n )
205 DO 30 i = n - 1, 1, -1
206 rwork( i ) = rwork( i ) / d( i ) + rwork( i+1 )*abs( e( i ) )
211 ix =
idamax( n, rwork, 1 )
212 ainvnm = abs( rwork( ix ) )
217 $ rcond = ( one / ainvnm ) / anorm