117 SUBROUTINE dppcon( UPLO, N, AP, ANORM, RCOND, WORK, IWORK, INFO )
126 DOUBLE PRECISION ANORM, RCOND
130 DOUBLE PRECISION AP( * ), WORK( * )
136 DOUBLE PRECISION ONE, ZERO
137 parameter( one = 1.0d+0, zero = 0.0d+0 )
143 DOUBLE PRECISION AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
151 DOUBLE PRECISION DLAMCH
152 EXTERNAL lsame, idamax, dlamch
165 upper = lsame( uplo,
'U' )
166 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
168 ELSE IF( n.LT.0 )
THEN
170 ELSE IF( anorm.LT.zero )
THEN
174 CALL xerbla(
'DPPCON', -info )
184 ELSE IF( anorm.EQ.zero )
THEN
188 smlnum = dlamch(
'Safe minimum' )
195 CALL dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
201 CALL dlatps(
'Upper',
'Transpose',
'Non-unit', normin, n,
202 $ ap, work, scalel, work( 2*n+1 ), info )
207 CALL dlatps(
'Upper',
'No transpose',
'Non-unit', normin, n,
208 $ ap, work, scaleu, work( 2*n+1 ), info )
213 CALL dlatps(
'Lower',
'No transpose',
'Non-unit', normin, n,
214 $ ap, work, scalel, work( 2*n+1 ), info )
219 CALL dlatps(
'Lower',
'Transpose',
'Non-unit', normin, n,
220 $ ap, work, scaleu, work( 2*n+1 ), info )
225 scale = scalel*scaleu
226 IF( scale.NE.one )
THEN
227 ix = idamax( n, work, 1 )
228 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
230 CALL drscl( n, scale, work, 1 )
238 $ rcond = ( one / ainvnm ) / anorm
subroutine xerbla(srname, info)
subroutine dlacn2(n, v, x, isgn, est, kase, isave)
DLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine dlatps(uplo, trans, diag, normin, n, ap, x, scale, cnorm, info)
DLATPS solves a triangular system of equations with the matrix held in packed storage.
subroutine dppcon(uplo, n, ap, anorm, rcond, work, iwork, info)
DPPCON
subroutine drscl(n, sa, sx, incx)
DRSCL multiplies a vector by the reciprocal of a real scalar.