123 $ LDC, RWORK, RESID )
131 INTEGER LDA, LDAFAC, LDC, N
136 REAL A( LDA, * ), AFAC( LDAFAC, * ), C( LDC, * ),
144 parameter( zero = 0.0e+0, one = 1.0e+0 )
153 EXTERNAL lsame, slamch, slansy
172 eps = slamch(
'Epsilon' )
173 anorm = slansy(
'1', uplo, n, a, lda, rwork )
177 CALL slaset(
'Full', n, n, zero, one, c, ldc )
181 CALL slavsy_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
182 $ ldafac, ipiv, c, ldc, info )
186 CALL slavsy_rook( uplo,
'No transpose',
'Unit', n, n, afac,
187 $ ldafac, ipiv, c, ldc, info )
191 IF( lsame( uplo,
'U' ) )
THEN
194 c( i, j ) = c( i, j ) - a( i, j )
200 c( i, j ) = c( i, j ) - a( i, j )
207 resid = slansy(
'1', uplo, n, c, ldc, rwork )
209 IF( anorm.LE.zero )
THEN
213 resid = ( ( resid / real( n ) ) / anorm ) / eps
subroutine slaset(uplo, m, n, alpha, beta, a, lda)
SLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
subroutine slavsy_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
SLAVSY_ROOK
subroutine ssyt01_rook(uplo, n, a, lda, afac, ldafac, ipiv, c, ldc, rwork, resid)
SSYT01_ROOK