141 SUBROUTINE sspr2(UPLO,N,ALPHA,X,INCX,Y,INCY,AP)
160 parameter(zero=0.0e+0)
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(
'SSPR2 ',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 sspr2(uplo, n, alpha, x, incx, y, incy, ap)
SSPR2