139 SUBROUTINE zhet01_3( UPLO, N, A, LDA, AFAC, LDAFAC, E, IPIV, C,
140 $ LDC, RWORK, RESID )
148 INTEGER LDA, LDAFAC, LDC, N
149 DOUBLE PRECISION RESID
153 DOUBLE PRECISION RWORK( * )
154 COMPLEX*16 A( LDA, * ), AFAC( LDAFAC, * ), C( LDC, * ),
161 DOUBLE PRECISION ZERO, ONE
162 parameter( zero = 0.0d+0, one = 1.0d+0 )
163 COMPLEX*16 CZERO, CONE
164 parameter( czero = ( 0.0d+0, 0.0d+0 ),
165 $ cone = ( 1.0d+0, 0.0d+0 ) )
169 DOUBLE PRECISION ANORM, EPS
173 DOUBLE PRECISION ZLANHE, DLAMCH
174 EXTERNAL lsame, zlanhe, dlamch
180 INTRINSIC dimag, dble
193 CALL zsyconvf_rook( uplo,
'R', n, afac, ldafac, e, ipiv, info )
197 eps = dlamch(
'Epsilon' )
198 anorm = zlanhe(
'1', uplo, n, a, lda, rwork )
204 IF( dimag( afac( j, j ) ).NE.zero )
THEN
212 CALL zlaset(
'Full', n, n, czero, cone, c, ldc )
216 CALL zlavhe_rook( uplo,
'Conjugate',
'Non-unit', n, n, afac,
217 $ ldafac, ipiv, c, ldc, info )
221 CALL zlavhe_rook( uplo,
'No transpose',
'Unit', n, n, afac,
222 $ ldafac, ipiv, c, ldc, info )
226 IF( lsame( uplo,
'U' ) )
THEN
229 c( i, j ) = c( i, j ) - a( i, j )
231 c( j, j ) = c( j, j ) - dble( a( j, j ) )
235 c( j, j ) = c( j, j ) - dble( a( j, j ) )
237 c( i, j ) = c( i, j ) - a( i, j )
244 resid = zlanhe(
'1', uplo, n, c, ldc, rwork )
246 IF( anorm.LE.zero )
THEN
250 resid = ( ( resid/dble( n ) )/anorm ) / eps
255 CALL zsyconvf_rook( uplo,
'C', n, afac, ldafac, e, ipiv, info )
subroutine zlaset(uplo, m, n, alpha, beta, a, lda)
ZLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
subroutine zsyconvf_rook(uplo, way, n, a, lda, e, ipiv, info)
ZSYCONVF_ROOK
subroutine zhet01_3(uplo, n, a, lda, afac, ldafac, e, ipiv, c, ldc, rwork, resid)
ZHET01_3
subroutine zlavhe_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
ZLAVHE_ROOK