DotProdAutoScale

Computes the dot product of two vectors using the automatic scaling.

Syntax

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

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.

pSfs

Pointer to the scaling factor.

Description

The function ippsDotProdAutoScale is declared in the ippsc.h file. This function computes the dot product of two vectors and automatically scales it during calculation, adjusting the scale factor so as to eliminate possible overflow in the process:



The final scaling factor is returned by pSfs. Vectors pSrc1 and pSrc2 must have the same length, len.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc1, pSrc2, pDp, or pSfs 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.