Intel® oneAPI Math Kernel Library Developer Reference - C
Computes the dot product of a compressed sparse complex vector by a full-storage complex vector.
void cblas_cdotui_sub (const MKL_INT nz, const void *x, const MKL_INT *indx, const void *y, void *dotui);
void cblas_zdotui_sub (const MKL_INT nz, const void *x, const MKL_INT *indx, const void *y, void *dotui);
The ?dotui routines return the dot product of x and y defined as
res = x[0]*y[indx[0]] + x[1]*y(indx[1]) +...+ x[nz - 1]*y[indx[nz - 1]]
where the triple (nz, x, indx) defines a sparse complex vector stored in compressed form, and y is a real vector in full storage form. The functions reference only the elements of y whose indices are listed in the array indx. The values in indx must be distinct.
The number of elements in x and indx.
Array, size at least nz.
Specifies the indices for the elements of x.
Array, size at least nz.
Array, size at least max(indx[i]).
Contains the dot product of x and y, if nz is positive. Otherwise, res contains 0.