125 SUBROUTINE cpot02( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK,
134 INTEGER LDA, LDB, LDX, N, NRHS
139 COMPLEX A( LDA, * ), B( LDB, * ), X( LDX, * )
146 parameter( zero = 0.0e+0, one = 1.0e+0 )
148 parameter( cone = ( 1.0e+0, 0.0e+0 ) )
152 REAL ANORM, BNORM, EPS, XNORM
155 REAL CLANHE, SCASUM, SLAMCH
156 EXTERNAL clanhe, scasum, slamch
168 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
175 eps = slamch(
'Epsilon' )
176 anorm = clanhe(
'1', uplo, n, a, lda, rwork )
177 IF( anorm.LE.zero )
THEN
184 CALL chemm(
'Left', uplo, n, nrhs, -cone, a, lda, x, ldx, cone, b,
192 bnorm = scasum( n, b( 1, j ), 1 )
193 xnorm = scasum( n, x( 1, j ), 1 )
194 IF( xnorm.LE.zero )
THEN
197 resid = max( resid, ( ( bnorm/anorm )/xnorm )/eps )
subroutine cpot02(uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
CPOT02
subroutine chemm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
CHEMM