119 SUBROUTINE spocon( UPLO, N, A, LDA, ANORM, RCOND, WORK, IWORK,
133 REAL A( LDA, * ), WORK( * )
140 parameter( one = 1.0e+0, zero = 0.0e+0 )
146 REAL AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
155 EXTERNAL lsame, isamax, slamch
168 upper = lsame( uplo,
'U' )
169 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
171 ELSE IF( n.LT.0 )
THEN
173 ELSE IF( lda.LT.max( 1, n ) )
THEN
175 ELSE IF( anorm.LT.zero )
THEN
179 CALL xerbla(
'SPOCON', -info )
189 ELSE IF( anorm.EQ.zero )
THEN
193 smlnum = slamch(
'Safe minimum' )
200 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
206 CALL slatrs(
'Upper',
'Transpose',
'Non-unit', normin, n, a,
207 $ lda, work, scalel, work( 2*n+1 ), info )
212 CALL slatrs(
'Upper',
'No transpose',
'Non-unit', normin, n,
213 $ a, lda, work, scaleu, work( 2*n+1 ), info )
218 CALL slatrs(
'Lower',
'No transpose',
'Non-unit', normin, n,
219 $ a, lda, work, scalel, work( 2*n+1 ), info )
224 CALL slatrs(
'Lower',
'Transpose',
'Non-unit', normin, n, a,
225 $ lda, work, scaleu, work( 2*n+1 ), info )
230 scale = scalel*scaleu
231 IF( scale.NE.one )
THEN
232 ix = isamax( n, work, 1 )
233 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
235 CALL srscl( n, scale, work, 1 )
243 $ 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 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.