133 $ ldaf, ipiv, x, info,
143 INTEGER n, lda, ldaf, info
147 COMPLEX*16 a( lda, * ), af( ldaf, * ), work( * ), x( * )
148 DOUBLE PRECISION rwork( * )
155 DOUBLE PRECISION ainvnm, anorm, tmp
173 DOUBLE PRECISION cabs1
176 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
183 upper =
lsame( uplo,
'U' )
184 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
186 ELSE IF ( n.LT.0 )
THEN
188 ELSE IF( lda.LT.max( 1, n ) )
THEN
190 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
194 CALL
xerbla(
'ZLA_HERCOND_X', -info )
198 IF (
lsame( uplo,
'U' ) ) up = .true.
207 tmp = tmp + cabs1( a( j, i ) * x( j ) )
210 tmp = tmp + cabs1( a( i, j ) * x( j ) )
213 anorm = max( anorm, tmp )
219 tmp = tmp + cabs1( a( i, j ) * x( j ) )
222 tmp = tmp + cabs1( a( j, i ) * x( j ) )
225 anorm = max( anorm, tmp )
234 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
244 CALL
zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
251 work( i ) = work( i ) * rwork( i )
255 CALL
zhetrs(
'U', n, 1, af, ldaf, ipiv,
258 CALL
zhetrs(
'L', n, 1, af, ldaf, ipiv,
265 work( i ) = work( i ) / x( i )
272 work( i ) = work( i ) / x( i )
276 CALL
zhetrs(
'U', n, 1, af, ldaf, ipiv,
279 CALL
zhetrs(
'L', n, 1, af, ldaf, ipiv,
286 work( i ) = work( i ) * rwork( i )
294 IF( ainvnm .NE. 0.0d+0 )