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
155 DOUBLE PRECISION DLAMCH, DLANSY
156 EXTERNAL lsame, dlamch, dlansy
175 eps = dlamch(
'Epsilon' )
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
subroutine dlaset(UPLO, M, N, ALPHA, BETA, A, LDA)
DLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values...
subroutine dsyt01(UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC, RWORK, RESID)
DSYT01
subroutine dlavsy(UPLO, TRANS, DIAG, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
DLAVSY