117 SUBROUTINE sppcon( UPLO, N, AP, ANORM, RCOND, WORK, IWORK, INFO )
130 REAL AP( * ), WORK( * )
137 parameter( one = 1.0e+0, zero = 0.0e+0 )
143 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
152 EXTERNAL lsame, isamax, slamch
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(
'SPPCON', -info )
184 ELSE IF( anorm.EQ.zero )
THEN
188 smlnum = slamch(
'Safe minimum' )
195 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
201 CALL slatps(
'Upper',
'Transpose',
'Non-unit', normin, n,
202 $ ap, work, scalel, work( 2*n+1 ), info )
207 CALL slatps(
'Upper',
'No transpose',
'Non-unit', normin, n,
208 $ ap, work, scaleu, work( 2*n+1 ), info )
213 CALL slatps(
'Lower',
'No transpose',
'Non-unit', normin, n,
214 $ ap, work, scalel, work( 2*n+1 ), info )
219 CALL slatps(
'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 = isamax( n, work, 1 )
228 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
230 CALL srscl( n, scale, work, 1 )
238 $ rcond = ( one / ainvnm ) / anorm
subroutine xerbla(srname, info)
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.