Developer Reference for Intel® oneAPI Math Kernel Library for C
?sctr
Converts compressed sparse vectors into full storage form.
Syntax
void cblas_ssctr ( const MKL_INT nz,
const float *x,
const MKL_INT *indx,
float *y );
void cblas_dsctr ( const MKL_INT nz,
const double *x,
const MKL_INT *indx,
double *y );
void cblas_csctr ( const MKL_INT nz,
const void *x,
const MKL_INT *indx,
void *y );
void cblas_zsctr ( const MKL_INT nz,
const void *x,
const MKL_INT *indx,
void *y );
Include Files
mkl.h
Description
ssctr dsctr csctr zsctr sctr
The ?sctr routines scatter the elements of the compressed sparse vector ( nz, x, indx ) to a full-storage vector \(y\) . The routines modify only the elements of \(y\) whose indices are listed in the array indx :
\[y[indx[i]] = x[i] \text{, for } i=0,1,\dots,nz-1\]
Input Parameters
nz
The number of elements in x and indx and the number of elements to be scattered to y.
indx
Specifies the indices of elements to be scattered. Array, size at least nz .
x
Array, size at least nz . Contains the vector to be converted to full-storage form.
Output Parameters
y
Array, size at least \(\max(\text{indx}[i]) + 1\).
Contains the vector y with updated elements.
BLAS 95 Interface Notes
There exist FORTRAN 77 and FORTRAN 95 interfaces for this routine. See the Intel® oneMKL Fortran Developer Reference for details.