123 SUBROUTINE ctrt01( UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND,
132 INTEGER LDA, LDAINV, N
137 COMPLEX A( LDA, * ), AINV( LDAINV, * )
144 parameter( zero = 0.0e+0, one = 1.0e+0 )
148 REAL AINVNM, ANORM, EPS
153 EXTERNAL lsame, clantr, slamch
173 eps = slamch(
'Epsilon' )
174 anorm = clantr(
'1', uplo, diag, n, n, a, lda, rwork )
175 ainvnm = clantr(
'1', uplo, diag, n, n, ainv, ldainv, rwork )
176 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
181 rcond = ( one / anorm ) / ainvnm
185 IF( lsame( diag,
'U' ) )
THEN
193 IF( lsame( uplo,
'U' ) )
THEN
195 CALL ctrmv(
'Upper',
'No transpose', diag, j, a, lda,
200 CALL ctrmv(
'Lower',
'No transpose', diag, n-j+1, a( j, j ),
201 $ lda, ainv( j, j ), 1 )
208 ainv( j, j ) = ainv( j, j ) - one
213 resid = clantr(
'1', uplo,
'Non-unit', n, n, ainv, ldainv, rwork )
215 resid = ( ( resid*rcond ) / real( n ) ) / eps
subroutine ctrt01(uplo, diag, n, a, lda, ainv, ldainv, rcond, rwork, resid)
CTRT01
subroutine ctrmv(uplo, trans, diag, n, a, lda, x, incx)
CTRMV