115 SUBROUTINE sppcon( UPLO, N, AP, ANORM, RCOND, WORK, IWORK,
129 REAL AP( * ), WORK( * )
136 parameter( one = 1.0e+0, zero = 0.0e+0 )
142 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
151 EXTERNAL lsame, isamax, slamch
164 upper = lsame( uplo,
'U' )
165 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
167 ELSE IF( n.LT.0 )
THEN
169 ELSE IF( anorm.LT.zero )
THEN
173 CALL xerbla(
'SPPCON', -info )
183 ELSE IF( anorm.EQ.zero )
THEN
187 smlnum = slamch(
'Safe minimum' )
194 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
200 CALL slatps(
'Upper',
'Transpose',
'Non-unit', normin, n,
201 $ ap, work, scalel, work( 2*n+1 ), info )
206 CALL slatps(
'Upper',
'No transpose',
'Non-unit', normin,
208 $ ap, work, scaleu, work( 2*n+1 ), info )
213 CALL slatps(
'Lower',
'No transpose',
'Non-unit', normin,
215 $ ap, work, scalel, work( 2*n+1 ), info )
220 CALL slatps(
'Lower',
'Transpose',
'Non-unit', normin, n,
221 $ ap, work, scaleu, work( 2*n+1 ), info )
226 scale = scalel*scaleu
227 IF( scale.NE.one )
THEN
228 ix = isamax( n, work, 1 )
229 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
231 CALL srscl( n, scale, work, 1 )
239 $ rcond = ( one / ainvnm ) / anorm
subroutine slacn2(n, v, x, isgn, est, kase, isave)
SLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
subroutine slatps(uplo, trans, diag, normin, n, ap, x, scale, cnorm, info)
SLATPS solves a triangular system of equations with the matrix held in packed storage.
subroutine sppcon(uplo, n, ap, anorm, rcond, work, iwork, info)
SPPCON
subroutine srscl(n, sa, sx, incx)
SRSCL multiplies a vector by the reciprocal of a real scalar.