124 SUBROUTINE strt01( UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND,
134 INTEGER LDA, LDAINV, N
138 REAL A( lda, * ), AINV( ldainv, * ), WORK( * )
145 parameter ( zero = 0.0e+0, one = 1.0e+0 )
149 REAL AINVNM, ANORM, EPS
154 EXTERNAL lsame, slamch, slantr
174 eps = slamch(
'Epsilon' )
175 anorm = slantr(
'1', uplo, diag, n, n, a, lda, work )
176 ainvnm = slantr(
'1', uplo, diag, n, n, ainv, ldainv, work )
177 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
182 rcond = ( one / anorm ) / ainvnm
186 IF( lsame( diag,
'U' ) )
THEN
194 IF( lsame( uplo,
'U' ) )
THEN
196 CALL strmv(
'Upper',
'No transpose', diag, j, a, lda,
201 CALL strmv(
'Lower',
'No transpose', diag, n-j+1, a( j, j ),
202 $ lda, ainv( j, j ), 1 )
209 ainv( j, j ) = ainv( j, j ) - one
214 resid = slantr(
'1', uplo,
'Non-unit', n, n, ainv, ldainv, work )
216 resid = ( ( resid*rcond ) /
REAL( N ) ) / eps
subroutine strt01(UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND, WORK, RESID)
STRT01
subroutine strmv(UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
STRMV