127 SUBROUTINE spot02( UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK,
137 INTEGER LDA, LDB, LDX, N, NRHS
141 REAL A( lda, * ), B( ldb, * ), RWORK( * ),
149 parameter ( zero = 0.0e+0, one = 1.0e+0 )
153 REAL ANORM, BNORM, EPS, XNORM
156 REAL SASUM, SLAMCH, SLANSY
157 EXTERNAL sasum, slamch, slansy
169 IF( n.LE.0 .OR. nrhs.LE.0 )
THEN
176 eps = slamch(
'Epsilon' )
177 anorm = slansy(
'1', uplo, n, a, lda, rwork )
178 IF( anorm.LE.zero )
THEN
185 CALL ssymm(
'Left', uplo, n, nrhs, -one, a, lda, x, ldx, one, b,
193 bnorm = sasum( n, b( 1, j ), 1 )
194 xnorm = sasum( n, x( 1, j ), 1 )
195 IF( xnorm.LE.zero )
THEN
198 resid = max( resid, ( ( bnorm / anorm ) / xnorm ) / eps )
subroutine spot02(UPLO, N, NRHS, A, LDA, X, LDX, B, LDB, RWORK, RESID)
SPOT02
subroutine ssymm(SIDE, UPLO, M, N, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
SSYMM