119 SUBROUTINE dpocon( UPLO, N, A, LDA, ANORM, RCOND, WORK, IWORK,
129 DOUBLE PRECISION ANORM, RCOND
133 DOUBLE PRECISION A( LDA, * ), WORK( * )
139 DOUBLE PRECISION ONE, ZERO
140 parameter( one = 1.0d+0, zero = 0.0d+0 )
146 DOUBLE PRECISION AINVNM, SCALE, SCALEL, SCALEU, SMLNUM
154 DOUBLE PRECISION DLAMCH
155 EXTERNAL lsame, idamax, dlamch
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(
'DPOCON', -info )
189 ELSE IF( anorm.EQ.zero )
THEN
193 smlnum = dlamch(
'Safe minimum' )
200 CALL dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
206 CALL dlatrs(
'Upper',
'Transpose',
'Non-unit', normin, n, a,
207 $ lda, work, scalel, work( 2*n+1 ), info )
212 CALL dlatrs(
'Upper',
'No transpose',
'Non-unit', normin, n,
213 $ a, lda, work, scaleu, work( 2*n+1 ), info )
218 CALL dlatrs(
'Lower',
'No transpose',
'Non-unit', normin, n,
219 $ a, lda, work, scalel, work( 2*n+1 ), info )
224 CALL dlatrs(
'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 = idamax( n, work, 1 )
233 IF( scale.LT.abs( work( ix ) )*smlnum .OR. scale.EQ.zero )
235 CALL drscl( n, scale, work, 1 )
243 $ 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 dlatrs(uplo, trans, diag, normin, n, a, lda, x, scale, cnorm, info)
DLATRS solves a triangular system of equations with the scale factor set to prevent overflow.
subroutine dpocon(uplo, n, a, lda, anorm, rcond, work, iwork, info)
DPOCON
subroutine drscl(n, sa, sx, incx)
DRSCL multiplies a vector by the reciprocal of a real scalar.