SumLn

Sums natural logarithms of each element of a vector.

Syntax

IppStatus ippsSumLn_32f(const Ipp32f* pSrc, int len, Ipp32f* pSum);

IppStatus ippsSumLn_64f(const Ipp64f* pSrc, int len, Ipp64f* pSum);

IppStatus ippsSumLn_32f64f(const Ipp32f* pSrc, int len, Ipp64f* pSum);

IppStatus ippsSumLn_16s32f(const Ipp16s* pSrc, int len, Ipp32f* pSum);

Parameters

pSrc

Pointer to the source vector.

pSum

Pointer to the output result.

len

Number of elements in the vector.

Description

The function ippsSumLn is declared in the ipps.h file. This function computes the sum of natural logarithms of each element of the vector pSrc and stores the result value in pSum. The summation is given by:



Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc or pSum pointer is NULL.

ippStsSizeErr

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

ippStsLnZeroArg

Indicates a warning for zero-valued input vector elements. Operation execution is not aborted. The value of the destination vector element for floating-point operations is set to -Inf.

ippStsLnNegArg

Indicates a warning for negative input vector elements. Operation execution is not aborted. The value of the destination vector element for floating-point operations is set to NaN.

Submit feedback on this help topic

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