111 SUBROUTINE cspt01( UPLO, N, A, AFAC, IPIV, C, LDC, RWORK, RESID )
125 COMPLEX A( * ), AFAC( * ), C( LDC, * )
132 parameter( zero = 0.0e+0, one = 1.0e+0 )
134 parameter( czero = ( 0.0e+0, 0.0e+0 ),
135 $ cone = ( 1.0e+0, 0.0e+0 ) )
138 INTEGER I, INFO, J, JC
143 REAL CLANSP, CLANSY, SLAMCH
144 EXTERNAL lsame, clansp, clansy, slamch
163 eps = slamch(
'Epsilon' )
164 anorm = clansp(
'1', uplo, n, a, rwork )
168 CALL claset(
'Full', n, n, czero, cone, c, ldc )
172 CALL clavsp( uplo,
'Transpose',
'Non-unit', n, n, afac, ipiv, c,
177 CALL clavsp( uplo,
'No transpose',
'Unit', n, n, afac, ipiv, c,
182 IF( lsame( uplo,
'U' ) )
THEN
186 c( i, j ) = c( i, j ) - a( jc+i )
194 c( i, j ) = c( i, j ) - a( jc+i-j )
202 resid = clansy(
'1', uplo, n, c, ldc, rwork )
204 IF( anorm.LE.zero )
THEN
208 resid = ( ( resid/real( n ) )/anorm ) / eps
subroutine clavsp(uplo, trans, diag, n, nrhs, a, ipiv, b, ldb, info)
CLAVSP
subroutine cspt01(uplo, n, a, afac, ipiv, c, ldc, rwork, resid)
CSPT01
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.