SGER/DGER/CGERC/CGERU/ZGERC/ZGERU

 

Rank-1 update

 

INTEGER*8

m, n, lda, incx, incy

 

REAL*8

alpha, a(lda, n), x(lenx), y(leny)

 

CALL DGER(m, n, alpha, x, incx, y, incy, a, lda)

 

INTEGER*8

m, n, lda, incx, incy

 

COMPLEX*8

alpha, a(lda, n), x(lenx), y(leny)

 

CALL CGERC(m, n, alpha, x, incx, y, incy, a, lda)

 

INTEGER*8

m, n, lda, incx, incy

 

COMPLEX*8

alpha, a(lda, n), x(lenx), y(leny)

 

CALL CGERU(m, n, alpha, x, incx, y, incy, a, lda)

 

INTEGER*8

m, n, lda, incx, incy

 

COMPLEX*16

alpha, a(lda, n), x(lenx), y(leny)

 

CALL ZGERC(m, n, alpha, x, incx, y, incy, a, lda)

 

INTEGER*8

m, n, lda, incx, incy

 

COMPLEX*16

alpha, a(lda, n), x(lenx), y(leny)

 

CALL ZGERU(m, n, alpha, x, incx, y, incy, a, lda)

Input

m

Number of rows in matrix A and elements of vector x,

 

 

m ≥ 0. If m = 0, the subprograms do not reference a, x,

 

 

or y.

 

 

n

Number of columns in matrix A and elements of vector

 

 

y, n ≥ 0. If n = 0, the subprograms do not reference a, x,

 

 

or y.

 

 

alpha

The scalar α. If alpha = 0, the subprograms do not

 

 

reference A, x, or y.

 

x

Array of length lenx = (m−1)⋅incx+1 containing the

 

 

m-vector x.

 

 

incx

Increment for the array x, incx ≠ 0:

 

 

incx > 0

x is stored forward in array x; that is,

 

 

 

xi is stored in x((i−1)⋅incx+1).

 

 

incx < 0

x is stored backward in array x; that

 

 

 

is, xi is stored in x((im)⋅incx+1).

 

 

Use incx = 1 if the vector x is stored contiguously in

 

 

array x, that is, if xi is stored in x(i). Refer to “BLAS

 

 

Indexing Conventions” in the introduction to

 

 

Chapter 2.

 

 

y

Array of length leny = (n−1)⋅incy+1 containing the

 

 

n-vector y. y is used in conjugated form by CGERC and

238HP MLIB User’s Guide