125 SUBROUTINE zsyt02( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK,
134 INTEGER LDA, LDB, LDX, N, NRHS
135 DOUBLE PRECISION RESID
138 DOUBLE PRECISION RWORK( * )
139 COMPLEX*16 A( LDA, * ), B( LDB, * ), X( LDX, * )
145 DOUBLE PRECISION ZERO, ONE
146 parameter( zero = 0.0d+0, one = 1.0d+0 )
148 parameter( cone = ( 1.0d+0, 0.0d+0 ) )
152 DOUBLE PRECISION ANORM, BNORM, EPS, XNORM
155 DOUBLE PRECISION DLAMCH, DZASUM, ZLANSY
156 EXTERNAL dlamch, dzasum, zlansy
168 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
175 eps = dlamch(
'Epsilon' )
176 anorm = zlansy(
'1', uplo, n, a, lda, rwork )
177 IF( anorm.LE.zero )
THEN
184 CALL zsymm(
'Left', uplo, n, nrhs, -cone, a, lda, x, ldx, cone, b,
192 bnorm = dzasum( n, b( 1, j ), 1 )
193 xnorm = dzasum( n, x( 1, j ), 1 )
194 IF( xnorm.LE.zero )
THEN
197 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine zsymm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
ZSYMM
subroutine zsyt02(uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
ZSYT02