128 SUBROUTINE dspr(UPLO,N,ALPHA,X,INCX,AP)
136 DOUBLE PRECISION alpha
141 DOUBLE PRECISION ap(*),x(*)
147 DOUBLE PRECISION zero
148 parameter(zero=0.0d+0)
151 DOUBLE PRECISION temp
152 INTEGER i,info,ix,j,jx,k,kk,kx
165 IF (.NOT.
lsame(uplo,
'U') .AND. .NOT.
lsame(uplo,
'L'))
THEN
167 ELSE IF (n.LT.0)
THEN
169 ELSE IF (incx.EQ.0)
THEN
179 IF ((n.EQ.0) .OR. (alpha.EQ.zero)) return
185 ELSE IF (incx.NE.1)
THEN
193 IF (
lsame(uplo,
'U'))
THEN
199 IF (x(j).NE.zero)
THEN
203 ap(k) = ap(k) + x(i)*temp
212 IF (x(jx).NE.zero)
THEN
215 DO 30 k = kk,kk + j - 1
216 ap(k) = ap(k) + x(ix)*temp
230 IF (x(j).NE.zero)
THEN
234 ap(k) = ap(k) + x(i)*temp
243 IF (x(jx).NE.zero)
THEN
246 DO 70 k = kk,kk + n - j
247 ap(k) = ap(k) + x(ix)*temp