123 SUBROUTINE dpot03( UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK,
124 $ RWORK, RCOND, RESID )
132 INTEGER LDA, LDAINV, LDWORK, N
133 DOUBLE PRECISION RCOND, RESID
136 DOUBLE PRECISION A( LDA, * ), AINV( LDAINV, * ), RWORK( * ),
143 DOUBLE PRECISION ZERO, ONE
144 parameter( zero = 0.0d+0, one = 1.0d+0 )
148 DOUBLE PRECISION AINVNM, ANORM, EPS
152 DOUBLE PRECISION DLAMCH, DLANGE, DLANSY
153 EXTERNAL lsame, dlamch, dlange, dlansy
173 eps = dlamch(
'Epsilon' )
174 anorm = dlansy(
'1', uplo, n, a, lda, rwork )
175 ainvnm = dlansy(
'1', uplo, n, ainv, ldainv, rwork )
176 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
181 rcond = ( one / anorm ) / ainvnm
186 IF( lsame( uplo,
'U' ) )
THEN
189 ainv( j, i ) = ainv( i, j )
195 ainv( j, i ) = ainv( i, j )
199 CALL dsymm(
'Left', uplo, n, n, -one, a, lda, ainv, ldainv, zero,
205 work( i, i ) = work( i, i ) + one
210 resid = dlange(
'1', n, n, work, ldwork, rwork )
212 resid = ( ( resid*rcond ) / eps ) / dble( n )
subroutine dpot03(uplo, n, a, lda, ainv, ldainv, work, ldwork, rwork, rcond, resid)
DPOT03
subroutine dsymm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
DSYMM