124 SUBROUTINE dsyt01( UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC,
134 INTEGER lda, ldafac, ldc, n
135 DOUBLE PRECISION resid
139 DOUBLE PRECISION a( lda, * ), afac( ldafac, * ), c( ldc, * ),
146 DOUBLE PRECISION zero, one
147 parameter( zero = 0.0d+0, one = 1.0d+0 )
151 DOUBLE PRECISION anorm, eps
176 anorm =
dlansy(
'1', uplo, n, a, lda, rwork )
180 CALL
dlaset(
'Full', n, n, zero, one, c, ldc )
184 CALL
dlavsy( uplo,
'Transpose',
'Non-unit', n, n, afac, ldafac,
185 $ ipiv, c, ldc, info )
189 CALL
dlavsy( 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 =
dlansy(
'1', uplo, n, c, ldc, rwork )
212 IF( anorm.LE.zero )
THEN
216 resid = ( ( resid / dble( n ) ) / anorm ) / eps