129 INTEGER n, lda, ldaf, info
132 COMPLEX a( lda, * ), af( ldaf, * ), work( * ), x( * )
140 REAL ainvnm, anorm, tmp
155 INTRINSIC abs, max, real, aimag
161 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
168 upper =
lsame( uplo,
'U' )
169 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
171 ELSE IF ( n.LT.0 )
THEN
173 ELSE IF( lda.LT.max( 1, n ) )
THEN
175 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
179 CALL xerbla(
'CLA_PORCOND_X', -info )
183 IF (
lsame( uplo,
'U' ) ) up = .true.
192 tmp = tmp + cabs1( a( j, i ) * x( j ) )
195 tmp = tmp + cabs1( a( i, j ) * x( j ) )
198 anorm = max( anorm, tmp )
204 tmp = tmp + cabs1( a( i, j ) * x( j ) )
207 tmp = tmp + cabs1( a( j, i ) * x( j ) )
210 anorm = max( anorm, tmp )
219 ELSE IF( anorm .EQ. 0.0e+0 )
THEN
229 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
236 work( i ) = work( i ) * rwork( i )
240 CALL cpotrs(
'U', n, 1, af, ldaf,
243 CALL cpotrs(
'L', n, 1, af, ldaf,
250 work( i ) = work( i ) / x( i )
257 work( i ) = work( i ) / x( i )
261 CALL cpotrs(
'U', n, 1, af, ldaf,
264 CALL cpotrs(
'L', n, 1, af, ldaf,
271 work( i ) = work( i ) * rwork( i )
279 IF( ainvnm .NE. 0.0e+0 )
real function cla_porcond_x(uplo, n, a, lda, af, ldaf, x, info, work, rwork)
CLA_PORCOND_X computes the infinity norm condition number of op(A)*diag(x) for Hermitian positive-def...
subroutine clacn2(n, v, x, est, kase, isave)
CLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine cpotrs(uplo, n, nrhs, a, lda, b, ldb, info)
CPOTRS