Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 10/31/2024
Public
Document Table of Contents

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

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

pSrc

Pointer to the source vector.

pSum

Pointer to the output result.

len

Number of elements in the vector.

Description

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.