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);

Parameters

pSrc

Pointer to the source vector.

val

Pointer to the destination vector.

pSrcDst

Pointer to the source and destination vector for the in-place operation.

len

Number of elements in the vector.

Description

The function ippsAddProductC is declared in the ipps.h file. 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:

pSrcDst[n] = pSrcDst[n] + pSrc[n]*val, 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.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.