117 SUBROUTINE spocon( UPLO, N, A, LDA, ANORM, RCOND, WORK, IWORK,
131 REAL A( LDA, * ), WORK( * )
138 parameter( one = 1.0e+0, zero = 0.0e+0 )
144 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
153 EXTERNAL lsame, isamax, slamch
166 upper = lsame( uplo,
'U' )
167 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
169 ELSE IF( n.LT.0 )
THEN
171 ELSE IF( lda.LT.max( 1, n ) )
THEN
173 ELSE IF( anorm.LT.zero )
THEN
177 CALL xerbla(
'SPOCON', -info )
187 ELSE IF( anorm.EQ.zero )
THEN
191 smlnum = slamch(
'Safe minimum' )
198 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
204 CALL slatrs(
'Upper',
'Transpose',
'Non-unit', normin, n,
206 $ lda, work, scalel, work( 2*n+1 ), info )
211 CALL slatrs(
'Upper',
'No transpose',
'Non-unit', normin,
213 $ a, lda, work, scaleu, work( 2*n+1 ), info )
218 CALL slatrs(
'Lower',
'No transpose',
'Non-unit', normin,
220 $ a, lda, work, scalel, work( 2*n+1 ), info )
225 CALL slatrs(
'Lower',
'Transpose',
'Non-unit', normin, n,
227 $ lda, work, scaleu, work( 2*n+1 ), info )
232 scale = scalel*scaleu
233 IF( scale.NE.one )
THEN
234 ix = isamax( n, work, 1 )
235 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
237 CALL srscl( n, scale, work, 1 )
245 $ 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 slatrs(uplo, trans, diag, normin, n, a, lda, x, scale, cnorm, info)
SLATRS solves a triangular system of equations with the scale factor set to prevent overflow.
subroutine spocon(uplo, n, a, lda, anorm, rcond, work, iwork, info)
SPOCON
subroutine srscl(n, sa, sx, incx)
SRSCL multiplies a vector by the reciprocal of a real scalar.