nmpp
Функции

Функции

void nmppsRShiftC_MulC_AddC_2x32s (int32x2 *dataSparseSrc, int32x2 *preshiftArg, int32x2 *mulArg, int32x2 *addArg, int32x2 *dataSparseDst, int size, int stepSparseSrc, int stepSparseDst)
 

Подробное описание

Sparse vector by constant multiplication with addition of constant.

\[
     dataSparseDst[i \cdot stepSparseDst][k]  =  (dataSparseSrc[i \cdot stepSparseSrc][k]>>preshiftArg[k])\cdot mulArg[k] + addArg[k],
\]

\[
     i = \overline{0 \ldots size-1}; k = \overline{0 \ldots K-1},
\]

where K is value of intWxK type

Аргументы
[in]dataSparseSrcInput sparse vector of 64-bit packed words
[in]preshiftArgPacked 64-bit word of values for preshifting of input data = [2,4,6,8...28,30]
[in]mulArgPacked 64-bit word with values to multiply
[in]addArgPacked 64-bit word with values to add
[in]dataSparseDstOuput sparse vector of 64-bit packed words
[in]sizeactual amount of 64-bit packed words in sparse vector to be processed
[in]stepSparseSrc64-bit step between input packed words in memory . By default=1 means that input vector is continuous
[in]stepSparseDst64-bit step between output packed words in memory. By default=1 means that output vector is continuous
Возвращает
void