115 SUBROUTINE cppcon( UPLO, N, AP, ANORM, RCOND, WORK, RWORK,
129 COMPLEX AP( * ), WORK( * )
136 parameter( one = 1.0e+0, zero = 0.0e+0 )
142 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
152 EXTERNAL lsame, icamax, slamch
158 INTRINSIC abs, aimag, real
164 cabs1( zdum ) = abs( real( zdum ) ) + abs( aimag( zdum ) )
171 upper = lsame( uplo,
'U' )
172 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
174 ELSE IF( n.LT.0 )
THEN
176 ELSE IF( anorm.LT.zero )
THEN
180 CALL xerbla(
'CPPCON', -info )
190 ELSE IF( anorm.EQ.zero )
THEN
194 smlnum = slamch(
'Safe minimum' )
201 CALL clacn2( n, work( n+1 ), work, ainvnm, kase, isave )
207 CALL clatps(
'Upper',
'Conjugate transpose',
'Non-unit',
208 $ normin, n, ap, work, scalel, rwork, info )
213 CALL clatps(
'Upper',
'No transpose',
'Non-unit', normin,
215 $ ap, work, scaleu, rwork, info )
220 CALL clatps(
'Lower',
'No transpose',
'Non-unit', normin,
222 $ ap, work, scalel, rwork, info )
227 CALL clatps(
'Lower',
'Conjugate transpose',
'Non-unit',
228 $ normin, n, ap, work, scaleu, rwork, info )
233 scale = scalel*scaleu
234 IF( scale.NE.one )
THEN
235 ix = icamax( n, work, 1 )
236 IF( scale.LT.cabs1( work( ix ) )*smlnum .OR. scale.EQ.zero )
238 CALL csrscl( n, scale, work, 1 )
246 $ 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 clatps(uplo, trans, diag, normin, n, ap, x, scale, cnorm, info)
CLATPS solves a triangular system of equations with the matrix held in packed storage.
subroutine cppcon(uplo, n, ap, anorm, rcond, work, rwork, info)
CPPCON
subroutine csrscl(n, sa, sx, incx)
CSRSCL multiplies a vector by the reciprocal of a real scalar.