132 DOUBLE PRECISION FUNCTION zla_hercond_x( UPLO, N, A, LDA, AF,
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 )
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_hercond_x(UPLO, N, A, LDA, AF, LDAF, IPIV, X, INFO, WORK, RWORK)
ZLA_HERCOND_X computes the infinity norm condition number of op(A)*diag(x) for Hermitian indefinite m...
subroutine zhetrs(UPLO, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
ZHETRS