123 SUBROUTINE spot03( UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK,
124 $ RWORK, RCOND, RESID )
132 INTEGER LDA, LDAINV, LDWORK, N
136 REAL A( LDA, * ), AINV( LDAINV, * ), RWORK( * ),
144 parameter( zero = 0.0e+0, one = 1.0e+0 )
148 REAL AINVNM, ANORM, EPS
152 REAL SLAMCH, SLANGE, SLANSY
153 EXTERNAL lsame, slamch, slange, slansy
173 eps = slamch(
'Epsilon' )
174 anorm = slansy(
'1', uplo, n, a, lda, rwork )
175 ainvnm = slansy(
'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 ssymm(
'Left', uplo, n, n, -one, a, lda, ainv, ldainv, zero,
205 work( i, i ) = work( i, i ) + one
210 resid = slange(
'1', n, n, work, ldwork, rwork )
212 resid = ( ( resid*rcond ) / eps ) / real( n )
subroutine ssymm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
SSYMM
subroutine spot03(uplo, n, a, lda, ainv, ldainv, work, ldwork, rwork, rcond, resid)
SPOT03