Developer Reference for Intel® Integrated Performance Primitives 2019
Computes the natural logarithm of each element of a vector.
IppStatus ippsLn_32f(const Ipp32f* pSrc, Ipp32f* pDst, int len);
IppStatus ippsLn_64f(const Ipp64f* pSrc, Ipp64f* pDst, int len);
IppStatus ippsLn_16s_Sfs(const Ipp16s* pSrc, Ipp16s* pDst, int len, int scaleFactor);
IppStatus ippsLn_32s_Sfs(const Ipp32s* pSrc, Ipp32s* pDst, int len, int scaleFactor);
IppStatus ippsLn_16s_ISfs(Ipp16s* pSrcDst, int len, int scaleFactor);
IppStatus ippsLn_32s_ISfs(Ipp32s* pSrcDst, int len, int scaleFactor);
IppStatus ippsLn_32f_I(Ipp32f* pSrcDst, int len);
IppStatus ippsLn_64f_I(Ipp64f* pSrcDst, int len);
ipps.h
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
pSrc |
Pointer to the source vector. |
pDst |
Pointer to the destination vector. |
pSrcDst |
Pointer to the source and destination vector for the in-place operation. |
len |
Number of elements in the vector |
scaleFactor |
Scale factor, refer to Integer Scaling. |
This function computes the natural logarithm of each element of the vector pSrc and stores the result in pDst as given by
pDst[n] = loge (pSrc[n])
The in-place flavors of ippsLn compute the natural logarithm of each element of the vector pSrcDst and store the result in pSrcDst as given by
pSrcDst[n] = loge (pSrcDst[n])
If the function ippsLn encounters a zero or negative value in the input, it returns a warning status and continues execution with the corresponding result value (see appendix A "Handling of Special Cases" for more information).
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pSrc, pDst, or pSrcDst pointer is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to zero. |
ippStsLnZeroArg |
Indicates a warning for zero-valued input vector elements. |
ippStsLnNegArg |
Indicates a warning for negative input vector elements. |