cblas_?geru
cblas_?geru
Performs a rank-1 update (unconjugated) of a general matrix.
Syntax
void
cblas_cgeru
(
const
CBLAS_LAYOUT
Layout
,
const
MKL_INT
m
,
const
MKL_INT
n
,
const
void
*alpha
,
const
void
*x
,
const
MKL_INT
incx
,
const
void
*y
,
const
MKL_INT
incy
,
void
*a
,
const
MKL_INT
lda
);
void
cblas_zgeru
(
const
CBLAS_LAYOUT
Layout
,
const
MKL_INT
m
,
const
MKL_INT
n
,
const
void
*alpha
,
const
void
*x
,
const
MKL_INT
incx
,
const
void
*y
,
const
MKL_INT
incy
,
void
*a
,
const
MKL_INT
lda
);
Include Files
- mkl.h
Description
The
?geru
routines perform a matrix-vector operation defined as A := alpha*x*y ' + A,
where:
alpha
is a scalar,x
is an m
-element vector,y
is an n
-element vector,A
is an m
-by-n
matrix.Input Parameters
- Layout
- Specifies whether two-dimensional array storage is row-major (CblasRowMajor) or column-major (CblasColMajor).
- m
- Specifies the number of rows of the matrixA.The value ofmmust be at least zero.
- n
- Specifies the number of columns of the matrixA.The value ofnmust be at least zero.
- alpha
- Specifies the scalaralpha.
- x
- Array, size at least(1 + (. Before entry, the incremented arraym- 1)*abs(incx))xmust contain them-element vectorx.
- incx
- Specifies the increment for the elements ofx.The value ofincxmust not be zero.
- y
- Array, size at least(1 + (. Before entry, the incremented arrayn- 1)*abs(incy))ymust contain then-element vectory.
- incy
- Specifies the increment for the elements ofy.The value ofincymust not be zero.
- a
- Array, sizelda*k.ForLayout=CblasColMajor,kisn. Before entry, the leadingm-by-npart of the arrayamust contain the matrixA.ForLayout=CblasRowMajor,kism. Before entry, the leadingn-by-mpart of the arrayamust contain the matrixA.
- lda
- Specifies the leading dimension ofaas declared in the calling (sub)program.ForLayout=CblasColMajor, the value ofldamust be at leastmax(1,.m)ForLayout=CblasRowMajor, the value ofldamust be at leastmax(1,.n)
Output Parameters
- a
- Overwritten by the updated matrix.