139 SUBROUTINE csyt01_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, slamch, clansy
193 CALL csyconvf_rook( uplo,
'R', n, afac, ldafac, e, ipiv, info )
197 eps = slamch(
'Epsilon' )
198 anorm = clansy(
'1', uplo, n, a, lda, rwork )
202 CALL claset(
'Full', n, n, czero, cone, c, ldc )
206 CALL clavsy_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
207 $ ldafac, ipiv, c, ldc, info )
211 CALL clavsy_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 = clansy(
'1', uplo, n, c, ldc, rwork )
234 IF( anorm.LE.zero )
THEN
238 resid = ( ( resid / real( n ) ) / anorm ) / eps
244 CALL csyconvf_rook( uplo,
'C', n, afac, ldafac, e, ipiv, info )
subroutine clavsy_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
CLAVSY_ROOK
subroutine csyt01_3(uplo, n, a, lda, afac, ldafac, e, ipiv, c, ldc, rwork, resid)
CSYT01_3
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