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
174 DOUBLE PRECISION cabs1
177 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
184 upper =
lsame( uplo,
'U' )
185 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
187 ELSE IF( n.LT.0 )
THEN
189 ELSE IF( lda.LT.max( 1, n ) )
THEN
191 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
195 CALL
xerbla(
'ZLA_SYRCOND_X', -info )
199 IF (
lsame( uplo,
'U' ) ) up = .true.
208 tmp = tmp + cabs1( a( j, i ) * x( j ) )
211 tmp = tmp + cabs1( a( i, j ) * x( j ) )
214 anorm = max( anorm, tmp )
220 tmp = tmp + cabs1( a( i, j ) * x( j ) )
223 tmp = tmp + cabs1( a( j, i ) * x( j ) )
226 anorm = max( anorm, tmp )
235 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
245 CALL
zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
252 work( i ) = work( i ) * rwork( i )
256 CALL
zsytrs(
'U', n, 1, af, ldaf, ipiv,
259 CALL
zsytrs(
'L', n, 1, af, ldaf, ipiv,
266 work( i ) = work( i ) / x( i )
273 work( i ) = work( i ) / x( i )
277 CALL
zsytrs(
'U', n, 1, af, ldaf, ipiv,
280 CALL
zsytrs(
'L', n, 1, af, ldaf, ipiv,
287 work( i ) = work( i ) * rwork( i )
295 IF( ainvnm .NE. 0.0d+0 )