124 SUBROUTINE dsyt01_rook( UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C,
125 $ ldc, rwork, resid )
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_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
185 $ ldafac, ipiv, c, ldc, info )
189 CALL dlavsy_rook( uplo,
'No transpose',
'Unit', n, n, afac,
190 $ ldafac, 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_rook(UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC, RWORK, RESID)
DSYT01_ROOK
subroutine dlavsy_rook(UPLO, TRANS, DIAG, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
DLAVSY_ROOK