Developer Reference

  • 2021
  • 01/25/2021
  • Public Content
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
.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.