133 $ info, work, rwork )
141 INTEGER n, lda, ldaf, info
145 COMPLEX a( lda, * ), af( ldaf, * ), work( * ), x( * )
154 REAL ainvnm, anorm, tmp
169 INTRINSIC abs, max, real, aimag
175 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( 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(
'CLA_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.0e+0 )
THEN
236 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
241 work( i ) = work( i ) * rwork( i )
245 CALL cgetrs(
'No transpose', n, 1, af, ldaf, ipiv,
248 CALL cgetrs(
'Conjugate transpose', n, 1, af, ldaf,
256 work( i ) = work( i ) / x( i )
263 work( i ) = work( i ) / x( i )
267 CALL cgetrs(
'Conjugate transpose', n, 1, af, ldaf,
271 CALL cgetrs(
'No transpose', n, 1, af, ldaf, ipiv,
278 work( i ) = work( i ) * rwork( i )
286 IF( ainvnm .NE. 0.0e+0 )
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...