139 SUBROUTINE zsyt01_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 DLAMCH, ZLANSY
174 EXTERNAL lsame, dlamch, zlansy
193 CALL zsyconvf_rook( uplo,
'R', n, afac, ldafac, e, ipiv, info )
197 eps = dlamch(
'Epsilon' )
198 anorm = zlansy(
'1', uplo, n, a, lda, rwork )
202 CALL zlaset(
'Full', n, n, czero, cone, c, ldc )
206 CALL zlavsy_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
207 $ ldafac, ipiv, c, ldc, info )
211 CALL zlavsy_rook( uplo,
'No transpose',
'Unit', n, n, afac,
212 $ ldafac, ipiv, c, ldc, info )
216 IF( lsame( uplo,
'U' ) )
THEN
219 c( i, j ) = c( i, j ) - a( i, j )
225 c( i, j ) = c( i, j ) - a( i, j )
232 resid = zlansy(
'1', uplo, n, c, ldc, rwork )
234 IF( anorm.LE.zero )
THEN
238 resid = ( ( resid / dble( n ) ) / anorm ) / eps
244 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 zlavsy_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
ZLAVSY_ROOK
subroutine zsyt01_3(uplo, n, a, lda, afac, ldafac, e, ipiv, c, ldc, rwork, resid)
ZSYT01_3