[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Computes a constant times a vector plus a vector.

**SUBROUTINE SAXPY(***N***,***A***,***X***,***INCX***,***Y***,***INCY***)**

**INTEGER** *INCX***,** *INCY***,** *N*

**REAL** *A*

**REAL** *X***(*),** *Y***(*)**

SUBROUTINE DAXPY(N,A,X,INCX,Y,INCY)INTEGERINCX,INCY,NDOUBLE PRECISIONADOUBLE PRECISIONX(*),Y(*)

SUBROUTINE CAXPY(N,A,X,INCX,Y,INCY)INTEGERINCX,INCY,NCOMPLEXACOMPLEXX(*),Y(*)

SUBROUTINE ZAXPY(N,A,X,INCX,Y,INCY)INTEGERINCX,INCY,NCOMPLEX*16ACOMPLEX*16X(*),Y(*)

The **SAXPY**,
**DAXPY**, **CAXPY,** or **ZAXPY** subroutine computes a
constant times a vector plus a vector:

If *SA* = 0 or
*N* <= 0, the subroutine returns immediately.
**
**