Developer Reference for Intel® oneAPI Math Kernel Library for C
?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 \leftarrow a \cdot 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 .
Input Parameters
nz
The number of elements in x and indx .
a
Specifies the scalar \(a\) .
x
Array, size at least nz .
indx
Specifies the indices for the elements of x. Array, size at least nz .
y
Array, size at least \(\max(\text{indx}[i]) + 1\).
Output Parameters
- y
-
Contains the updated vector \(y\) .
BLAS 95 Interface Notes
There exist FORTRAN 77 and FORTRAN 95 interfaces for this routine. See the Intel® oneMKL Fortran Developer Reference for details.