HP MLIB User's Guide Vol. 1 7th Ed.
Chapter 3 Basic Matrix Operations 375
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:
where A is an m-by-n matrix, α and β are scalars, x is an m-vector, y is an
n-vector, and y
T
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 y
i
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)
When AIR
n
2
, A∈αxy
T
βA+←
When A C
n
2
∈ A,αxy
T
βA or+←
A αxy
∗
βA+←