125 $ ldaf, x, info, work,
135 INTEGER n, lda, ldaf, info
138 COMPLEX*16 a( lda, * ), af( ldaf, * ), work( * ), x( * )
139 DOUBLE PRECISION rwork( * )
146 DOUBLE PRECISION ainvnm, anorm, tmp
161 INTRINSIC abs, max,
REAL, dimag
164 DOUBLE PRECISION cabs1
167 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
174 upper =
lsame( uplo,
'U' )
175 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
177 ELSE IF ( n.LT.0 )
THEN
179 ELSE IF( lda.LT.max( 1, n ) )
THEN
181 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
185 CALL
xerbla(
'ZLA_PORCOND_X', -info )
189 IF (
lsame( uplo,
'U' ) ) up = .true.
198 tmp = tmp + cabs1( a( j, i ) * x( j ) )
201 tmp = tmp + cabs1( a( i, j ) * x( j ) )
204 anorm = max( anorm, tmp )
210 tmp = tmp + cabs1( a( i, j ) * x( j ) )
213 tmp = tmp + cabs1( a( j, i ) * x( j ) )
216 anorm = max( anorm, tmp )
225 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
235 CALL
zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
242 work( i ) = work( i ) * rwork( i )
246 CALL
zpotrs(
'U', n, 1, af, ldaf,
249 CALL
zpotrs(
'L', n, 1, af, ldaf,
256 work( i ) = work( i ) / x( i )
263 work( i ) = work( i ) / x( i )
267 CALL
zpotrs(
'U', n, 1, af, ldaf,
270 CALL
zpotrs(
'L', n, 1, af, ldaf,
277 work( i ) = work( i ) * rwork( i )
285 IF( ainvnm .NE. 0.0d+0 )