123 SUBROUTINE csyt01( UPLO, N, A, LDA, AFAC, LDAFAC, IPIV, C, LDC,
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( uplo,
'Transpose',
'Non-unit', n, n, afac, ldafac,
186 $ ipiv, c, ldc, info )
190 CALL clavsy( uplo,
'No transpose',
'Unit', n, n, afac, ldafac,
191 $ 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(uplo, trans, diag, n, nrhs, a, lda, ipiv, b, ldb, info)
CLAVSY
subroutine csyt01(uplo, n, a, lda, afac, ldafac, ipiv, c, ldc, rwork, resid)
CSYT01
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.