Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

ReplaceNAN

Replaces not-a-number (NaN) values of vector elements with a constant value.

Syntax

IppStatus ippsReplaceNAN_32f_I(Ipp32f*
pSrcDst
, int
len
, Ipp32f
value
);
IppStatus ippsReplaceNAN_64f_I(Ipp64f*
pSrcDst
, int
len
, Ipp64f
value
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
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.
Description
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]
Return Values
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.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804