123 SUBROUTINE cppt02( UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK,
133 INTEGER LDB, LDX, N, NRHS
138 COMPLEX A( * ), B( ldb, * ), X( ldx, * )
145 parameter ( zero = 0.0e+0, one = 1.0e+0 )
147 parameter ( cone = ( 1.0e+0, 0.0e+0 ) )
151 REAL ANORM, BNORM, EPS, XNORM
154 REAL CLANHP, SCASUM, SLAMCH
155 EXTERNAL clanhp, scasum, slamch
167 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
174 eps = slamch(
'Epsilon' )
175 anorm = clanhp(
'1', uplo, n, a, rwork )
176 IF( anorm.LE.zero )
THEN
184 CALL chpmv( uplo, n, -cone, a, x( 1, j ), 1, cone, b( 1, j ),
193 bnorm = scasum( n, b( 1, j ), 1 )
194 xnorm = scasum( n, x( 1, j ), 1 )
195 IF( xnorm.LE.zero )
THEN
198 resid = max( resid, ( ( bnorm/anorm )/xnorm )/eps )
subroutine chpmv(UPLO, N, ALPHA, AP, X, INCX, BETA, Y, INCY)
CHPMV
subroutine cppt02(UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK, RESID)
CPPT02