131 $ LDAF, IPIV, X, INFO,
140 INTEGER n, lda, ldaf, info
144 COMPLEX*16 a( lda, * ), af( ldaf, * ), work( * ), x( * )
145 DOUBLE PRECISION rwork( * )
152 DOUBLE PRECISION ainvnm, anorm, tmp
171 DOUBLE PRECISION cabs1
174 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
181 upper =
lsame( uplo,
'U' )
182 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
184 ELSE IF( n.LT.0 )
THEN
186 ELSE IF( lda.LT.max( 1, n ) )
THEN
188 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
192 CALL xerbla(
'ZLA_SYRCOND_X', -info )
196 IF (
lsame( uplo,
'U' ) ) up = .true.
205 tmp = tmp + cabs1( a( j, i ) * x( j ) )
208 tmp = tmp + cabs1( a( i, j ) * x( j ) )
211 anorm = max( anorm, tmp )
217 tmp = tmp + cabs1( a( i, j ) * x( j ) )
220 tmp = tmp + cabs1( a( j, i ) * x( j ) )
223 anorm = max( anorm, tmp )
232 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
242 CALL zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
249 work( i ) = work( i ) * rwork( i )
253 CALL zsytrs(
'U', n, 1, af, ldaf, ipiv,
256 CALL zsytrs(
'L', n, 1, af, ldaf, ipiv,
263 work( i ) = work( i ) / x( i )
270 work( i ) = work( i ) / x( i )
274 CALL zsytrs(
'U', n, 1, af, ldaf, ipiv,
277 CALL zsytrs(
'L', n, 1, af, ldaf, ipiv,
284 work( i ) = work( i ) * rwork( i )
292 IF( ainvnm .NE. 0.0d+0 )
subroutine xerbla(srname, info)
subroutine zsytrs(uplo, n, nrhs, a, lda, ipiv, b, ldb, info)
ZSYTRS
double precision function zla_syrcond_x(uplo, n, a, lda, af, ldaf, ipiv, x, info, work, rwork)
ZLA_SYRCOND_X computes the infinity norm condition number of op(A)*diag(x) for symmetric indefinite m...
subroutine zlacn2(n, v, x, est, kase, isave)
ZLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
logical function lsame(ca, cb)
LSAME