130 $ info, work, rwork )
138 INTEGER n, lda, ldaf, info
142 COMPLEX a( lda, * ), af( ldaf, * ), work( * ), x( * )
150 REAL ainvnm, anorm, tmp
172 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
179 upper =
lsame( uplo,
'U' )
180 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
182 ELSE IF ( n.LT.0 )
THEN
184 ELSE IF( lda.LT.max( 1, n ) )
THEN
186 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
190 CALL xerbla(
'CLA_SYRCOND_X', -info )
194 IF (
lsame( uplo,
'U' ) ) up = .true.
203 tmp = tmp + cabs1( a( j, i ) * x( j ) )
206 tmp = tmp + cabs1( a( i, j ) * x( j ) )
209 anorm = max( anorm, tmp )
215 tmp = tmp + cabs1( a( i, j ) * x( j ) )
218 tmp = tmp + cabs1( a( j, i ) * x( j ) )
221 anorm = max( anorm, tmp )
230 ELSE IF( anorm .EQ. 0.0e+0 )
THEN
240 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
247 work( i ) = work( i ) * rwork( i )
251 CALL csytrs(
'U', n, 1, af, ldaf, ipiv,
254 CALL csytrs(
'L', n, 1, af, ldaf, ipiv,
261 work( i ) = work( i ) / x( i )
268 work( i ) = work( i ) / x( i )
272 CALL csytrs(
'U', n, 1, af, ldaf, ipiv,
275 CALL csytrs(
'L', n, 1, af, ldaf, ipiv,
282 work( i ) = work( i ) * rwork( i )
290 IF( ainvnm .NE. 0.0e+0 )
subroutine xerbla(srname, info)
subroutine csytrs(uplo, n, nrhs, a, lda, ipiv, b, ldb, info)
CSYTRS
real function cla_syrcond_x(uplo, n, a, lda, af, ldaf, ipiv, x, info, work, rwork)
CLA_SYRCOND_X computes the infinity norm condition number of op(A)*diag(x) for symmetric indefinite m...
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