Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference
AddProductC
Adds product of a vector and a constant to the accumulator vector.
Syntax
IppStatus ippsAddProductC_32f(const Ipp32f* pSrc, const Ipp32f val, Ipp32f* pSrcDst, int len);
IppStatus ippsAddProductC_64f(const Ipp64f* pSrc, const Ipp64f val, Ipp64f* pSrcDst, int len);
IppStatus ippsAddProductC_32fc(const Ipp32fc* pSrc, const Ipp32fc val, Ipp32fc* pSrcDst, int len);
IppStatus ippsAddProductC_64fc(const Ipp64fc* pSrc, const Ipp64fc val, Ipp64fc* pSrcDst, int len);
Include Files
ipps.h
Domain Dependencies
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
Parameters
pSrc |
Pointer to the source vector. |
val |
The value by which the source vector is multiplied. |
pSrcDst |
Pointer to the source and destination vector for the in-place operation. |
len |
Number of elements in the vector. |
Description
This function multiplies each element of the source vector pSrc by a value val and adds the result to the corresponding element of the accumulator vector pSrcDst as given by:
For real data types:
pSrcDst [n] = pSrcDst [n] + pSrc [n]* val,
0≤n <len
For complex data types:
pSrcDst.re [n] = pSrcDst.re [n] + pSrc.re [n]* val.re - pSrc.im [n]* val.im,
pSrcDst.im [n] = pSrcDst.im [n] + pSrc.re [n]* val.im + pSrc.im [n]* val.re,
0≤n <len
Return Values
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if any of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error if len is less than or equal to 0. |