132 $ LDAF, IPIV, X, INFO,
141 INTEGER n, lda, ldaf, info
145 COMPLEX*16 a( lda, * ), af( ldaf, * ), work( * ), x( * )
146 DOUBLE PRECISION rwork( * )
154 DOUBLE PRECISION ainvnm, anorm, tmp
169 INTRINSIC abs, max, real, dimag
172 DOUBLE PRECISION cabs1
175 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
182 notrans =
lsame( trans,
'N' )
183 IF ( .NOT. notrans .AND. .NOT.
lsame( trans,
'T' ) .AND. .NOT.
184 $
lsame( trans,
'C' ) )
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_GERCOND_X', -info )
205 tmp = tmp + cabs1( a( i, j ) * x( j ) )
208 anorm = max( anorm, tmp )
214 tmp = tmp + cabs1( a( j, i ) * x( j ) )
217 anorm = max( anorm, tmp )
226 ELSE IF( anorm .EQ. 0.0d+0 )
THEN
236 CALL zlacn2( n, work( n+1 ), work, ainvnm, kase, isave )
241 work( i ) = work( i ) * rwork( i )
245 CALL zgetrs(
'No transpose', n, 1, af, ldaf, ipiv,
248 CALL zgetrs(
'Conjugate transpose', n, 1, af, ldaf,
256 work( i ) = work( i ) / x( i )
263 work( i ) = work( i ) / x( i )
267 CALL zgetrs(
'Conjugate transpose', n, 1, af, ldaf,
271 CALL zgetrs(
'No transpose', n, 1, af, ldaf, ipiv,
278 work( i ) = work( i ) * rwork( i )
286 IF( ainvnm .NE. 0.0d+0 )
subroutine xerbla(srname, info)
subroutine zgetrs(trans, n, nrhs, a, lda, ipiv, b, ldb, info)
ZGETRS
double precision function zla_gercond_x(trans, n, a, lda, af, ldaf, ipiv, x, info, work, rwork)
ZLA_GERCOND_X computes the infinity norm condition number of op(A)*diag(x) for general matrices.
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