119 SUBROUTINE zppcon( UPLO, N, AP, ANORM, RCOND, WORK, RWORK, INFO )
129 DOUBLE PRECISION anorm, rcond
132 DOUBLE PRECISION rwork( * )
133 COMPLEX*16 ap( * ), work( * )
139 DOUBLE PRECISION one, zero
140 parameter( one = 1.0d+0, zero = 0.0d+0 )
146 DOUBLE PRECISION ainvnm, scale, scalel, scaleu, smlnum
162 INTRINSIC abs, dble, dimag
165 DOUBLE PRECISION cabs1
168 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
175 upper =
lsame( uplo,
'U' )
176 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
178 ELSE IF( n.LT.0 )
THEN
180 ELSE IF( anorm.LT.zero )
THEN
184 CALL
xerbla(
'ZPPCON', -info )
194 ELSE IF( anorm.EQ.zero )
THEN
198 smlnum =
dlamch(
'Safe minimum' )
205 CALL
zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
211 CALL
zlatps(
'Upper',
'Conjugate transpose',
'Non-unit',
212 $ normin, n, ap, work, scalel, rwork, info )
217 CALL
zlatps(
'Upper',
'No transpose',
'Non-unit', normin, n,
218 $ ap, work, scaleu, rwork, info )
223 CALL
zlatps(
'Lower',
'No transpose',
'Non-unit', normin, n,
224 $ ap, work, scalel, rwork, info )
229 CALL
zlatps(
'Lower',
'Conjugate transpose',
'Non-unit',
230 $ normin, n, ap, work, scaleu, rwork, info )
235 scale = scalel*scaleu
236 IF( scale.NE.one )
THEN
238 IF( scale.LT.cabs1( work( ix ) )*smlnum .OR. scale.EQ.zero )
240 CALL
zdrscl( n, scale, work, 1 )
248 $ rcond = ( one / ainvnm ) / anorm