125 SUBROUTINE ctrt01( UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND,
135 INTEGER LDA, LDAINV, N
140 COMPLEX A( lda, * ), AINV( ldainv, * )
147 parameter ( zero = 0.0e+0, one = 1.0e+0 )
151 REAL AINVNM, ANORM, EPS
156 EXTERNAL lsame, clantr, slamch
176 eps = slamch(
'Epsilon' )
177 anorm = clantr(
'1', uplo, diag, n, n, a, lda, rwork )
178 ainvnm = clantr(
'1', uplo, diag, n, n, ainv, ldainv, rwork )
179 IF( anorm.LE.zero .OR. ainvnm.LE.zero )
THEN
184 rcond = ( one / anorm ) / ainvnm
188 IF( lsame( diag,
'U' ) )
THEN
196 IF( lsame( uplo,
'U' ) )
THEN
198 CALL ctrmv(
'Upper',
'No transpose', diag, j, a, lda,
203 CALL ctrmv(
'Lower',
'No transpose', diag, n-j+1, a( j, j ),
204 $ lda, ainv( j, j ), 1 )
211 ainv( j, j ) = ainv( j, j ) - one
216 resid = clantr(
'1', uplo,
'Non-unit', n, n, ainv, ldainv, rwork )
218 resid = ( ( resid*rcond ) /
REAL( N ) ) / eps
subroutine ctrmv(UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
CTRMV
subroutine ctrt01(UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND, RWORK, RESID)
CTRT01