141 SUBROUTINE dspr2(UPLO,N,ALPHA,X,INCX,Y,INCY,AP)
148 DOUBLE PRECISION ALPHA
153 DOUBLE PRECISION AP(*),X(*),Y(*)
159 DOUBLE PRECISION ZERO
160 parameter(zero=0.0d+0)
163 DOUBLE PRECISION TEMP1,TEMP2
164 INTEGER I,INFO,IX,IY,J,JX,JY,K,KK,KX,KY
177 IF (.NOT.lsame(uplo,
'U') .AND. .NOT.lsame(uplo,
'L'))
THEN
179 ELSE IF (n.LT.0)
THEN
181 ELSE IF (incx.EQ.0)
THEN
183 ELSE IF (incy.EQ.0)
THEN
187 CALL xerbla(
'DSPR2 ',info)
193 IF ((n.EQ.0) .OR. (alpha.EQ.zero))
RETURN
198 IF ((incx.NE.1) .OR. (incy.NE.1))
THEN
217 IF (lsame(uplo,
'U'))
THEN
221 IF ((incx.EQ.1) .AND. (incy.EQ.1))
THEN
223 IF ((x(j).NE.zero) .OR. (y(j).NE.zero))
THEN
228 ap(k) = ap(k) + x(i)*temp1 + y(i)*temp2
236 IF ((x(jx).NE.zero) .OR. (y(jy).NE.zero))
THEN
241 DO 30 k = kk,kk + j - 1
242 ap(k) = ap(k) + x(ix)*temp1 + y(iy)*temp2
256 IF ((incx.EQ.1) .AND. (incy.EQ.1))
THEN
258 IF ((x(j).NE.zero) .OR. (y(j).NE.zero))
THEN
263 ap(k) = ap(k) + x(i)*temp1 + y(i)*temp2
271 IF ((x(jx).NE.zero) .OR. (y(jy).NE.zero))
THEN
276 DO 70 k = kk,kk + n - j
277 ap(k) = ap(k) + x(ix)*temp1 + y(iy)*temp2
subroutine xerbla(srname, info)
subroutine dspr2(uplo, n, alpha, x, incx, y, incy, ap)
DSPR2