139 SUBROUTINE chet01_3( UPLO, N, A, LDA, AFAC, LDAFAC, E, IPIV, C,
140 $ LDC, RWORK, RESID )
148 INTEGER LDA, LDAFAC, LDC, N
154 COMPLEX A( LDA, * ), AFAC( LDAFAC, * ), C( LDC, * ),
162 parameter( zero = 0.0e+0, one = 1.0e+0 )
164 parameter( czero = ( 0.0e+0, 0.0e+0 ),
165 $ cone = ( 1.0e+0, 0.0e+0 ) )
174 EXTERNAL lsame, clanhe, slamch
180 INTRINSIC aimag, real
193 CALL csyconvf_rook( uplo,
'R', n, afac, ldafac, e, ipiv, info )
197 eps = slamch(
'Epsilon' )
198 anorm = clanhe(
'1', uplo, n, a, lda, rwork )
204 IF( aimag( afac( j, j ) ).NE.zero )
THEN
212 CALL claset(
'Full', n, n, czero, cone, c, ldc )
216 CALL clavhe_rook( uplo,
'Conjugate',
'Non-unit', n, n, afac,
217 $ ldafac, ipiv, c, ldc, info )
221 CALL clavhe_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 ) - real( a( j, j ) )
235 c( j, j ) = c( j, j ) - real( a( j, j ) )
237 c( i, j ) = c( i, j ) - a( i, j )
244 resid = clanhe(
'1', uplo, n, c, ldc, rwork )
246 IF( anorm.LE.zero )
THEN
250 resid = ( ( resid/real( n ) )/anorm ) / eps
255 CALL csyconvf_rook( uplo,
'C', n, afac, ldafac, e, ipiv, info )
subroutine chet01_3(uplo, n, a, lda, afac, ldafac, e, ipiv, c, ldc, rwork, resid)
CHET01_3
subroutine clavhe_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
CLAVHE_ROOK
subroutine claset(uplo, m, n, alpha, beta, a, lda)
CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
subroutine csyconvf_rook(uplo, way, n, a, lda, e, ipiv, info)
CSYCONVF_ROOK