107 SUBROUTINE sget03( N, A, LDA, AINV, LDAINV, WORK, LDWORK, RWORK,
115 INTEGER LDA, LDAINV, LDWORK, N
119 REAL A( LDA, * ), AINV( LDAINV, * ), RWORK( * ),
127 parameter( zero = 0.0e+0, one = 1.0e+0 )
131 REAL AINVNM, ANORM, EPS
135 EXTERNAL slamch, slange
155 eps = slamch(
'Epsilon' )
156 anorm = slange(
'1', n, n, a, lda, rwork )
157 ainvnm = slange(
'1', n, n, ainv, ldainv, rwork )
158 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
163 rcond = ( one / anorm ) / ainvnm
167 CALL sgemm(
'No transpose',
'No transpose', n, n, n, -one,
168 $ ainv, ldainv, a, lda, zero, work, ldwork )
170 work( i, i ) = one + work( i, i )
175 resid = slange(
'1', n, n, work, ldwork, rwork )
177 resid = ( ( resid*rcond ) / eps ) / real( n )
subroutine sgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)
SGEMM
subroutine sget03(n, a, lda, ainv, ldainv, work, ldwork, rwork, rcond, resid)
SGET03