125 SUBROUTINE spot03( UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK,
126 $ rwork, rcond, resid )
135 INTEGER LDA, LDAINV, LDWORK, N
139 REAL A( lda, * ), AINV( ldainv, * ), RWORK( * ),
147 parameter ( zero = 0.0e+0, one = 1.0e+0 )
151 REAL AINVNM, ANORM, EPS
155 REAL SLAMCH, SLANGE, SLANSY
156 EXTERNAL lsame, slamch, slange, slansy
176 eps = slamch(
'Epsilon' )
177 anorm = slansy(
'1', uplo, n, a, lda, rwork )
178 ainvnm = slansy(
'1', uplo, n, ainv, ldainv, rwork )
179 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
184 rcond = ( one / anorm ) / ainvnm
189 IF( lsame( uplo,
'U' ) )
THEN
192 ainv( j, i ) = ainv( i, j )
198 ainv( j, i ) = ainv( i, j )
202 CALL ssymm(
'Left', uplo, n, n, -one, a, lda, ainv, ldainv, zero,
208 work( i, i ) = work( i, i ) + one
213 resid = slange(
'1', n, n, work, ldwork, rwork )
215 resid = ( ( resid*rcond ) / eps ) /
REAL( n )
subroutine spot03(UPLO, N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK, RCOND, RESID)
SPOT03
subroutine ssymm(SIDE, UPLO, M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
SSYMM