General rank-1 update

F_SGER/F_DGER/F_CGER/F_ZGER

Name F_SGER/F_DGER/F_CGER/F_ZGER

General rank-1 update

Purpose F_xGER performs the following rank-1 operations:

When A I Rn2

,

A ← αx yT + βA

When A Cn2 ,

 

A ← αx yT + βA or

 

 

A ← αx y+ βA

where A is an m-by-nmatrix, α and β are scalars, x is an m-vector, y is an

n-vector, and yT and y* are the transpose and conjugate transpose of y, respectively. The operator argument CONJ is only referenced when x and y are complex vectors.

When x and y are complex vectors, the vector components yi are used unconjugated or conjugated as specified by the operator argument CONJ.

Refer to “SGER/DGER/CGERC/CGERU/ZGERC/ZGERU” on page 237 for a description of HP MLIB legacy BLAS subprograms for rank-1 update.

Usage

VECLIB

 

 

INTEGER*4

CONJ, INCX, INCY, LDA, M, N

 

REAL*4

ALPHA, BETA

 

REAL*4

A( LDA, * ), X( * ), Y( * )

 

SUBROUTINE F_SGER (CONJ, M, N, ALPHA, X, INCX, Y, INCY, BETA, A,

 

LDA)

 

 

INTEGER*4

CONJ, INCX, INCY, LDA, M, N

 

REAL*8

ALPHA, BETA

 

REAL*8

A( LDA, * ), X( * ), Y( * )

 

SUBROUTINE F_DGER (CONJ, M, N, ALPHA, X, INCX, Y, INCY, BETA, A,

 

LDA)

 

 

INTEGER*4

CONJ, INCX, INCY, LDA, M, N

 

COMPLEX*8

ALPHA, BETA

 

COMPLEX*8

A( LDA, * ), X( * ), Y( * )

SUBROUTINE F_CGER (CONJ, M, N, ALPHA, X, INCX, Y, INCY, BETA, A, LDA)

Chapter 3 Basic Matrix Operations 375