Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

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 matrix
A
.
The value of
m
must be at least zero.
n
Specifies the number of columns of the matrix
A
.
The value of
n
must be at least zero.
alpha
Specifies the scalar
alpha
.
x
Array, size at least
(1 + (
m
- 1)*abs(
incx
))
. Before entry, the incremented array
x
must contain the
m
-element vector
x
.
incx
Specifies the increment for the elements of
x
.
The value of
incx
must not be zero.
y
Array, size at least
(1 + (
n
- 1)*abs(
incy
))
. Before entry, the incremented array
y
must contain the
n
-element vector
y
.
incy
Specifies the increment for the elements of
y
.
The value of
incy
must not be zero.
a
Array, size
lda
*
k
.
For
Layout
=
CblasColMajor
,
k
is
n
. Before entry, the leading
m
-by-
n
part of the array
a
must contain the matrix
A
.
For
Layout
=
CblasRowMajor
,
k
is
m
. Before entry, the leading
n
-by-
m
part of the array
a
must contain the matrix
A
.
lda
Specifies the leading dimension of
a
as declared in the calling (sub)program.
For
Layout
=
CblasColMajor
, the value of
lda
must be at least
max(1,
m
)
.
For
Layout
=
CblasRowMajor
, the value of
lda
must be at least
max(1,
n
)
.
Output Parameters
a
Overwritten by the updated matrix.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804