130 $ LDAF, C, CAPPLY, INFO,
140 INTEGER n, lda, ldaf, info
143 COMPLEX*16 a( lda, * ), af( ldaf, * ), work( * )
144 DOUBLE PRECISION c( * ), rwork( * )
151 DOUBLE PRECISION ainvnm, anorm, tmp
167 INTRINSIC abs, max, real, dimag
170 DOUBLE PRECISION cabs1
173 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
180 upper =
lsame( uplo,
'U' )
181 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
183 ELSE IF( n.LT.0 )
THEN
185 ELSE IF( lda.LT.max( 1, n ) )
THEN
187 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
191 CALL xerbla(
'ZLA_PORCOND_C', -info )
195 IF (
lsame( uplo,
'U' ) ) up = .true.
205 tmp = tmp + cabs1( a( j, i ) ) / c( j )
208 tmp = tmp + cabs1( a( i, j ) ) / c( j )
212 tmp = tmp + cabs1( a( j, i ) )
215 tmp = tmp + cabs1( a( i, j ) )
219 anorm = max( anorm, tmp )
226 tmp = tmp + cabs1( a( i, j ) ) / c( j )
229 tmp = tmp + cabs1( a( j, i ) ) / c( j )
233 tmp = tmp + cabs1( a( i, j ) )
236 tmp = tmp + cabs1( a( j, i ) )
240 anorm = max( anorm, tmp )
249 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
259 CALL zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
266 work( i ) = work( i ) * rwork( i )
270 CALL zpotrs(
'U', n, 1, af, ldaf,
273 CALL zpotrs(
'L', n, 1, af, ldaf,
281 work( i ) = work( i ) * c( i )
290 work( i ) = work( i ) * c( i )
295 CALL zpotrs(
'U', n, 1, af, ldaf,
298 CALL zpotrs(
'L', n, 1, af, ldaf,
305 work( i ) = work( i ) * rwork( i )
313 IF( ainvnm .NE. 0.0d+0 )
subroutine xerbla(srname, info)
double precision function zla_porcond_c(uplo, n, a, lda, af, ldaf, c, capply, info, work, rwork)
ZLA_PORCOND_C computes the infinity norm condition number of op(A)*inv(diag(c)) for Hermitian positiv...
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
subroutine zpotrs(uplo, n, nrhs, a, lda, b, ldb, info)
ZPOTRS