Developer Reference for Intel® Integrated Performance Primitives
Replaces not-a-number (NaN) values of vector elements with a constant value.
IppStatus ippsReplaceNAN_32f_I(Ipp32f* pSrcDst, int len, Ipp32f value);
IppStatus ippsReplaceNAN_64f_I(Ipp64f* pSrcDst, int len, Ipp64f value);
ipps.h
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
pSrcDst |
Pointer to the source and destination vector. |
len |
Number of elements in the vector. |
value |
Constant value to be assigned to NaN elements of the vector. |
This function replaces not-a-number (NaN) elements of the source vector with value, other vector elements remain unchanged:
pSrcDst[i] = (pSrcDst[i] == NAN) ? value : pSrcDst[i]
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when pSrcDst is NULL. |
ippStsSizeErr |
Indicates an error when len is less than, or equal to zero. |