cblas_?axpyi
cblas_?axpyi
Adds a scalar multiple of compressed sparse vector to a full-storage vector.
Syntax
void
cblas_saxpyi
(
const
MKL_INT
nz
,
const
float
a
,
const
float
*x
,
const
MKL_INT
*indx
,
float
*y
);
void
cblas_daxpyi
(
const
MKL_INT
nz
,
const
double
a
,
const
double
*x
,
const
MKL_INT
*indx
,
double
*y
);
void
cblas_caxpyi
(
const
MKL_INT
nz
,
const
void
*a
,
const
void
*x
,
const
MKL_INT
*indx
,
void
*y
);
void
cblas_zaxpyi
(
const
MKL_INT
nz
,
const
void
*a
,
const
void
*x
,
const
MKL_INT
*indx
,
void
*y
);
Include Files
- mkl.h
Description
The
?axpyi
routines perform a vector-vector operation defined as y := a*x + y
where:
a
is a scalar,x
is a sparse vector stored in compressed form,y
is a vector in full storage form.The
?axpyi
routines reference or modify only the elements of y
whose indices are listed in the array indx
.The values in
indx
must be distinct.Input Parameters
- nz
- The number of elements inxandindx.
- a
- Specifies the scalara.
- x
- Array, size at leastnz.
- indx
- Specifies the indices for the elements ofx.Array, size at leastnz.
- y
- Array, size at leastmax(.indx[i])
Output Parameters
- y
- Contains the updated vectory.