124 SUBROUTINE ssyt01( UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC,
134 INTEGER LDA, LDAFAC, LDC, N
139 REAL A( lda, * ), AFAC( ldafac, * ), C( ldc, * ),
147 parameter ( zero = 0.0e+0, one = 1.0e+0 )
156 EXTERNAL lsame, slamch, slansy
175 eps = slamch(
'Epsilon' )
176 anorm = slansy(
'1', uplo, n, a, lda, rwork )
180 CALL slaset(
'Full', n, n, zero, one, c, ldc )
184 CALL slavsy( uplo,
'Transpose',
'Non-unit', n, n, afac, ldafac,
185 $ ipiv, c, ldc, info )
189 CALL slavsy( uplo,
'No transpose',
'Unit', n, n, afac, ldafac,
190 $ ipiv, c, ldc, info )
194 IF( lsame( uplo,
'U' ) )
THEN
197 c( i, j ) = c( i, j ) - a( i, j )
203 c( i, j ) = c( i, j ) - a( i, j )
210 resid = slansy(
'1', uplo, n, c, ldc, rwork )
212 IF( anorm.LE.zero )
THEN
216 resid = ( ( resid /
REAL( N ) ) / anorm ) / eps
subroutine slavsy(UPLO, TRANS, DIAG, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
SLAVSY
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 ssyt01(UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC, RWORK, RESID)
SSYT01