Developer Reference for Intel® Integrated Performance Primitives 2019
Performs the threshold operation on the absolute values of elements of a vector.
IppStatus ippsThreshold_LTAbs_16s(const Ipp16s* pSrc, Ipp16s* pDst, int len, Ipp16s level);
IppStatus ippsThreshold_LTAbs_32s(const Ipp32s* pSrc, Ipp32s* pDst, int len, Ipp32s level);
IppStatus ippsThreshold_LTAbs_32f(const Ipp32f* pSrc, Ipp32f* pDst, int len, Ipp32f level);
IppStatus ippsThreshold_LTAbs_64f(const Ipp64f* pSrc, Ipp64f* pDst, int len, Ipp64f level);
IppStatus ippsThreshold_GTAbs_16s(const Ipp16s* pSrc, Ipp16s* pDst, int len, Ipp16s level);
IppStatus ippsThreshold_GTAbs_32s(const Ipp32s* pSrc, Ipp32s* pDst, int len, Ipp32s level);
IppStatus ippsThreshold_GTAbs_32f(const Ipp32f* pSrc, Ipp32f* pDst, int len, Ipp32f level);
IppStatus ippsThreshold_GTAbs_64f(const Ipp64f* pSrc, Ipp64f* pDst, int len, Ipp64f level);
IppStatus ippsThreshold_GTAbs_16s_I(Ipp16s* pSrcDst, int len, Ipp16s level);
IppStatus ippsThreshold_GTAbs_32s_I(Ipp32s* pSrcDst, int len, Ipp32s level);
IppStatus ippsThreshold_GTAbs_32f_I(Ipp32f* pSrcDst, int len, Ipp32f level);
IppStatus ippsThreshold_GTAbs_64f_I(Ipp64f* pSrcDst, int len, Ipp64f level);
IppStatus ippsThreshold_LTAbs_16s_I(Ipp16s* pSrcDst, int len, Ipp16s level);
IppStatus ippsThreshold_LTAbs_32s_I(Ipp32s* pSrcDst, int len, Ipp32s level);
IppStatus ippsThreshold_LTAbs_32f_I(Ipp32f* pSrcDst, int len, Ipp32f level);
IppStatus ippsThreshold_LTAbs_64f_I(Ipp64f* pSrcDst, int len, Ipp64f level);
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. |
level |
Value used to limit each element of source vector. This argument can not be negative. |
These functions implement thresholding of the vector pSrc by limiting absolute value of each element by the threshold value level. These functions perform the compare operation of the fixed type: ippsThreshold_LTAbs is for the "less than" comparison, while ippsThreshold_GTAbs is for the "greater than" comparison. Elements of the result vector pDst have the same sign that the source elements.
The in-place flavors perform the threshold operation on the vector pSrcDst.
ippsThreshold_LTAbs. The ippsThreshold_LTAbsfunction performs the operation “less than”, and level is a lower bound for the input. The formula for ippsThreshold_LTAbs is the following:
ippsThreshold_GTAbs. The function ippsThreshold_GTAbs performs the operation “greater than” and level is an upper bound for the input. The formula for ippsThreshold_GTAbs is the following:
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if pSrc, pDst, or pSrcDst pointer is NULL. |
ippStsSizeErr |
Indicates an error if len is less than or equal to zero. |
ippStsThreshNegLevelErr |
Indicates an error if level is negative. |