117 SUBROUTINE cpocon( UPLO, N, A, LDA, ANORM, RCOND, WORK, RWORK,
131 COMPLEX A( LDA, * ), WORK( * )
138 parameter( one = 1.0e+0, zero = 0.0e+0 )
144 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
154 EXTERNAL lsame, icamax, slamch
160 INTRINSIC abs, aimag, max, real
166 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
173 upper = lsame( uplo,
'U' )
174 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
176 ELSE IF( n.LT.0 )
THEN
178 ELSE IF( lda.LT.max( 1, n ) )
THEN
180 ELSE IF( anorm.LT.zero )
THEN
184 CALL xerbla(
'CPOCON', -info )
194 ELSE IF( anorm.EQ.zero )
THEN
198 smlnum = slamch(
'Safe minimum' )
205 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
211 CALL clatrs(
'Upper',
'Conjugate transpose',
'Non-unit',
212 $ normin, n, a, lda, work, scalel, rwork, info )
217 CALL clatrs(
'Upper',
'No transpose',
'Non-unit', normin,
219 $ a, lda, work, scaleu, rwork, info )
224 CALL clatrs(
'Lower',
'No transpose',
'Non-unit', normin,
226 $ a, lda, work, scalel, rwork, info )
231 CALL clatrs(
'Lower',
'Conjugate transpose',
'Non-unit',
232 $ normin, n, a, lda, work, scaleu, rwork, info )
237 scale = scalel*scaleu
238 IF( scale.NE.one )
THEN
239 ix = icamax( n, work, 1 )
240 IF( scale.LT.cabs1( work( ix ) )*smlnum .OR. scale.EQ.zero )
242 CALL csrscl( n, scale, work, 1 )
250 $ rcond = ( one / ainvnm ) / anorm
subroutine clacn2(n, v, x, est, kase, isave)
CLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine clatrs(uplo, trans, diag, normin, n, a, lda, x, scale, cnorm, info)
CLATRS solves a triangular system of equations with the scale factor set to prevent overflow.
subroutine cpocon(uplo, n, a, lda, anorm, rcond, work, rwork, info)
CPOCON
subroutine csrscl(n, sa, sx, incx)
CSRSCL multiplies a vector by the reciprocal of a real scalar.