130 INTEGER n, lda, ldaf, info
133 COMPLEX a( lda, * ), af( ldaf, * ), work( * ), x( * )
141 REAL ainvnm, anorm, tmp
156 INTRINSIC abs, max, real, aimag
162 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
169 upper =
lsame( uplo,
'U' )
170 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
172 ELSE IF ( n.LT.0 )
THEN
174 ELSE IF( lda.LT.max( 1, n ) )
THEN
176 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
180 CALL xerbla(
'CLA_PORCOND_X', -info )
184 IF (
lsame( uplo,
'U' ) ) up = .true.
193 tmp = tmp + cabs1( a( j, i ) * x( j ) )
196 tmp = tmp + cabs1( a( i, j ) * x( j ) )
199 anorm = max( anorm, tmp )
205 tmp = tmp + cabs1( a( i, j ) * x( j ) )
208 tmp = tmp + cabs1( a( j, i ) * x( j ) )
211 anorm = max( anorm, tmp )
220 ELSE IF( anorm .EQ. 0.0e+0 )
THEN
230 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
237 work( i ) = work( i ) * rwork( i )
241 CALL cpotrs(
'U', n, 1, af, ldaf,
244 CALL cpotrs(
'L', n, 1, af, ldaf,
251 work( i ) = work( i ) / x( i )
258 work( i ) = work( i ) / x( i )
262 CALL cpotrs(
'U', n, 1, af, ldaf,
265 CALL cpotrs(
'L', n, 1, af, ldaf,
272 work( i ) = work( i ) * rwork( i )
280 IF( ainvnm .NE. 0.0e+0 )
subroutine xerbla(srname, info)
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...
logical function lsame(ca, cb)
LSAME
subroutine cpotrs(uplo, n, nrhs, a, lda, b, ldb, info)
CPOTRS