134 $ info, work, rwork )
142 INTEGER n, lda, ldaf, info
146 COMPLEX a( lda, * ), af( ldaf, * ), work( * ), x( * )
155 REAL ainvnm, anorm, tmp
170 INTRINSIC abs, max, real, aimag
176 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
183 notrans =
lsame( trans,
'N' )
184 IF ( .NOT. notrans .AND. .NOT.
lsame( trans,
'T' ) .AND. .NOT.
185 $
lsame( trans,
'C' ) )
THEN
187 ELSE IF( n.LT.0 )
THEN
189 ELSE IF( lda.LT.max( 1, n ) )
THEN
191 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
195 CALL xerbla(
'CLA_GERCOND_X', -info )
206 tmp = tmp + cabs1( a( i, j ) * x( j ) )
209 anorm = max( anorm, tmp )
215 tmp = tmp + cabs1( a( j, i ) * x( j ) )
218 anorm = max( anorm, tmp )
227 ELSE IF( anorm .EQ. 0.0e+0 )
THEN
237 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
242 work( i ) = work( i ) * rwork( i )
246 CALL cgetrs(
'No transpose', n, 1, af, ldaf, ipiv,
249 CALL cgetrs(
'Conjugate transpose', n, 1, af, ldaf, ipiv,
256 work( i ) = work( i ) / x( i )
263 work( i ) = work( i ) / x( i )
267 CALL cgetrs(
'Conjugate transpose', n, 1, af, ldaf, ipiv,
270 CALL cgetrs(
'No transpose', n, 1, af, ldaf, ipiv,
277 work( i ) = work( i ) * rwork( i )
285 IF( ainvnm .NE. 0.0e+0 )
subroutine xerbla(SRNAME, INFO)
XERBLA
logical function lsame(CA, CB)
LSAME
subroutine cgetrs(TRANS, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
CGETRS
real function cla_gercond_x(TRANS, N, A, LDA, AF, LDAF, IPIV, X, INFO, WORK, RWORK)
CLA_GERCOND_X computes the infinity norm condition number of op(A)*diag(x) for general matrices.
subroutine clacn2(N, V, X, EST, KASE, ISAVE)
CLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...