125 SUBROUTINE csyt01_rook( UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C,
126 $ ldc, rwork, resid )
135 INTEGER LDA, LDAFAC, LDC, N
141 COMPLEX A( lda, * ), AFAC( ldafac, * ), C( ldc, * )
148 parameter ( zero = 0.0e+0, one = 1.0e+0 )
150 parameter ( czero = ( 0.0e+0, 0.0e+0 ),
151 $ cone = ( 1.0e+0, 0.0e+0 ) )
160 EXTERNAL lsame, clansy, slamch
179 eps = slamch(
'Epsilon' )
180 anorm = clansy(
'1', uplo, n, a, lda, rwork )
184 CALL claset(
'Full', n, n, czero, cone, c, ldc )
188 CALL clavsy_rook( uplo,
'Transpose',
'Non-unit', n, n, afac,
189 $ ldafac, ipiv, c, ldc, info )
193 CALL clavsy_rook( uplo,
'No transpose',
'Unit', n, n, afac,
194 $ ldafac, ipiv, c, ldc, info )
198 IF( lsame( uplo,
'U' ) )
THEN
201 c( i, j ) = c( i, j ) - a( i, j )
207 c( i, j ) = c( i, j ) - a( i, j )
214 resid = clansy(
'1', uplo, n, c, ldc, rwork )
216 IF( anorm.LE.zero )
THEN
220 resid = ( ( resid/
REAL( N ) )/anorm ) / eps
subroutine clavsy_rook(UPLO, TRANS, DIAG, N, NRHS, A, LDA, IPIV, B, LDB, INFO)
CLAVSY_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 csyt01_rook(UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC, RWORK, RESID)
CSYT01_ROOK