138 SUBROUTINE ssyt01_3( UPLO, N, A, LDA, AFAC, LDAFAC, E, IPIV, C,
139 $ LDC, RWORK, RESID )
147 INTEGER LDA, LDAFAC, LDC, N
152 REAL A( LDA, * ), AFAC( LDAFAC, * ), C( LDC, * ),
160 parameter( zero = 0.0e+0, one = 1.0e+0 )
169 EXTERNAL lsame, slamch, slansy
188 CALL ssyconvf_rook( uplo,
'R', n, afac, ldafac, e, ipiv, info )
192 eps = slamch(
'Epsilon' )
193 anorm = slansy(
'1', uplo, n, a, lda, rwork )
197 CALL slaset(
'Full', n, n, zero, one, c, ldc )
201 CALL slavsy_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
202 $ ldafac, ipiv, c, ldc, info )
206 CALL slavsy_rook( uplo,
'No transpose',
'Unit', n, n, afac,
207 $ ldafac, ipiv, c, ldc, info )
211 IF( lsame( uplo,
'U' ) )
THEN
214 c( i, j ) = c( i, j ) - a( i, j )
220 c( i, j ) = c( i, j ) - a( i, j )
227 resid = slansy(
'1', uplo, n, c, ldc, rwork )
229 IF( anorm.LE.zero )
THEN
233 resid = ( ( resid / real( n ) ) / anorm ) / eps
239 CALL ssyconvf_rook( uplo,
'C', n, afac, ldafac, e, ipiv, info )
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 ssyconvf_rook(uplo, way, n, a, lda, e, ipiv, info)
SSYCONVF_ROOK
subroutine slavsy_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
SLAVSY_ROOK
subroutine ssyt01_3(uplo, n, a, lda, afac, ldafac, e, ipiv, c, ldc, rwork, resid)
SSYT01_3