DotProd_G729

Computes the dot product of two vectors.

Syntax

IppStatus ippsDotProd_G729A_16s32s (const Ipp16s* pSrc1, const Ipp16s* pSrc2, int len, Ipp32s* pDp);

IppStatus ippsDotProd_G729A_32f(const Ipp32f* pSrc1, const Ipp32f* pSrc2, int len, Ipp32f* pDp);

Parameters

pSrc1

Pointer to the first source vector.

pSrc2

Pointer to the second source vector.

len

Number of elements in each vector.

pDp

Pointer to the output result.

Description

The functions ippsDotProd_G729A are declared in the ippsc.h file. The function ippsDotProd_G729A_16s32s computes the dot product of two source vectors pSrc1 and pSrc2 as:



while for the ippsDotProd_G729A_32f function the result is



Vectors pSrc1 and pSrc2 must have the same length, len.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc1, pSrc2, or pDp pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to 0.

ippStsOverflow

Indicates a warning that at least one result value was saturated.

Submit feedback on this help topic

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