cblas_?axpy_batch_strided
cblas_?axpy_batch_strided
Computes a group of vector-scalar products added to a vector.
Syntax
void
cblas_saxpy_batch_strided
(
const
MKL_INT
n
,
const
float
alpha
,
const
float
*x
,
const
MKL_INT
incx
,
const
MKL_INT
stridex
,
float
*y
,
const
MKL_INT
incy
,
const
MKL_INT
stridey
,
const MKL_INT
batch_size
);
void
cblas_daxpy_batch_strided
(
const
MKL_INT
n
,
const
double
alpha
,
const
double
*x
,
const
MKL_INT
incx
,
const
MKL_INT
stridex
,
double
*y
,
const
MKL_INT
incy
,
const
MKL_INT
stridey
,
const MKL_INT
batch_size
);
void
cblas_caxpy_batch_strided
(
const
MKL_INT
n
,
const
void
alpha
,
const
void
*x
,
const
MKL_INT
incx
,
const
MKL_INT
stridex
,
void
*y
,
const
MKL_INT
incy
,
const
MKL_INT
stridey
,
const MKL_INT
batch_size
);
void
cblas_zaxpy_batch_strided
(
const
MKL_INT
n
,
const
void
alpha
,
const
void
*x
,
const
MKL_INT
incx
,
const
MKL_INT
stridex
,
void
*y
,
const
MKL_INT
incy
,
const
MKL_INT
stridey
,
const MKL_INT
batch_size
);
Include Files
- mkl.h
Description
The
cblas_?axpy_batch_strided
routines perform a series of scalar-vector product added to a vector. They are similar to the cblas_?axpy
routine counterparts, but the cblas_?axpy_batch_strided
routines perform vector operations with a group of vectors. All vector
x
(respectively, y
) have the same parameters (size, increments) and are stored at constant stridex
(respectively, stridey
) from each other. The operation is defined asFor i = 0 … batch_size – 1 X and Y are vectors at offset i * stridex and i * stridey in x and y Y = alpha * X + Y end for
Input Parameters
- n
- Number of elements in vectorsxandy.
- alpha
- Specifies the scalaralpha.
- x
- Array of size at leaststridex*batch_sizeholding thexvectors.
- incx
- Specifies the increment for the elements ofx.
- stridex
- Stride between two consecutivexvectors, must be at least (1 + (n-1)*abs(incx)).
- y
- Array of size at leaststridey*batch_sizeholding theyvectors.
- incy
- Specifies the increment for the elements ofy.
- stridey
- Stride between two consecutiveyvectors, must be at least (1 + (n-1)*abs(incy)).
- batch_size
- Number ofaxpycomputations to perform andxandyvectors. Must be at least 0.
Output Parameters
- y
- Array holding thebatch_sizeupdated vectory.