Rank-1 update

SGER/DGER/CGERC/CGERU/ZGERC/ZGERU

Name SGER/DGER/CGERC/CGERU/ZGERC/ZGERU

Rank-1 update

Purpose These subprograms compute the rank-1 updates

A ax yT + A and A axy* + A,

where A is an m-by-nmatrix, α is a scalar, x is an m-vector, y is an n-vector, and yT and y* are the transpose and conjugate transpose of y, respectively.

Refer to “F_SGER/F_DGER/F_CGER/F_ZGER” on page 375 for a description of the BLAS Standard subprograms for general rank-1 update.

Usage

VECLIB:

 

 

INTEGER*4

m, n, lda, incx, incy

 

REAL*4

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

 

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

 

INTEGER*4

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*4

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*4

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*4

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*4

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)

VECLIB8:

INTEGER*8

m, n, lda, incx, incy

REAL*4

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

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

Chapter 3 Basic Matrix Operations 237