124 DOUBLE PRECISION FUNCTION zla_porcond_x( UPLO, N, A, LDA, AF,
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 )
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine zlacn2(N, V, X, EST, KASE, ISAVE)
ZLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
double precision function zla_porcond_x(UPLO, N, A, LDA, AF, LDAF, X, INFO, WORK, RWORK)
ZLA_PORCOND_X computes the infinity norm condition number of op(A)*diag(x) for Hermitian positive-def...
subroutine zpotrs(UPLO, N, NRHS, A, LDA, B, LDB, INFO)
ZPOTRS