122 SUBROUTINE ssyt01( UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC,
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( uplo,
'Transpose',
'Non-unit', n, n, afac, ldafac,
182 $ ipiv, c, ldc, info )
186 CALL slavsy( uplo,
'No transpose',
'Unit', n, n, afac, ldafac,
187 $ 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(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
SLAVSY
subroutine ssyt01(uplo, n, a, lda, afac, ldafac, ipiv, c, ldc, rwork, resid)
SSYT01