125 SUBROUTINE spot02( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK,
134 INTEGER LDA, LDB, LDX, N, NRHS
138 REAL A( LDA, * ), B( LDB, * ), RWORK( * ),
146 parameter( zero = 0.0e+0, one = 1.0e+0 )
150 REAL ANORM, BNORM, EPS, XNORM
153 REAL SASUM, SLAMCH, SLANSY
154 EXTERNAL sasum, slamch, slansy
166 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
173 eps = slamch(
'Epsilon' )
174 anorm = slansy(
'1', uplo, n, a, lda, rwork )
175 IF( anorm.LE.zero )
THEN
182 CALL ssymm(
'Left', uplo, n, nrhs, -one, a, lda, x, ldx, one, b,
190 bnorm = sasum( n, b( 1, j ), 1 )
191 xnorm = sasum( n, x( 1, j ), 1 )
192 IF( xnorm.LE.zero )
THEN
195 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine ssymm(side, uplo, m, n, alpha, a, lda, b, ldb, beta, c, ldc)
SSYMM
subroutine spot02(uplo, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
SPOT02