124 $ LDC, RWORK, RESID )
132 INTEGER LDA, LDAFAC, LDC, N
138 COMPLEX A( LDA, * ), AFAC( LDAFAC, * ), C( LDC, * )
145 parameter( zero = 0.0e+0, one = 1.0e+0 )
147 parameter( czero = ( 0.0e+0, 0.0e+0 ),
148 $ cone = ( 1.0e+0, 0.0e+0 ) )
157 EXTERNAL lsame, clansy, slamch
176 eps = slamch(
'Epsilon' )
177 anorm = clansy(
'1', uplo, n, a, lda, rwork )
181 CALL claset(
'Full', n, n, czero, cone, c, ldc )
185 CALL clavsy_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
186 $ ldafac, ipiv, c, ldc, info )
190 CALL clavsy_rook( uplo,
'No transpose',
'Unit', n, n, afac,
191 $ ldafac, ipiv, c, ldc, info )
195 IF( lsame( uplo,
'U' ) )
THEN
198 c( i, j ) = c( i, j ) - a( i, j )
204 c( i, j ) = c( i, j ) - a( i, j )
211 resid = clansy(
'1', uplo, n, c, ldc, rwork )
213 IF( anorm.LE.zero )
THEN
217 resid = ( ( resid/real( n ) )/anorm ) / eps
subroutine clavsy_rook(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
CLAVSY_ROOK
subroutine csyt01_rook(uplo, n, a, lda, afac, ldafac, ipiv, c, ldc, rwork, resid)
CSYT01_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.