TopKInit
TopKInit
Initializes
pDstValue
and pDstIndex
arrays for the ippsTopK
function.Syntax
IppStatus ippsTopKInit_32s(Ipp32s*
pDstValue
, Ipp64s*
pDstIndex
, Ipp64s
dstLen
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
- pDstValue
- Pointer to an array with maximum values found by theTopKfunction.
- pDstIndex
- Pointer to an array with indexes of maximum values found by theTopKfunction.
- dstLen
- Number ofKvalues to be returned, the function returnsmin(K, dstLen)elements.
Description
This function initializes the
pDstValue
array with minimal values and pDstIndex
with -1 value.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error when at least one of the pointers isNULL.
- ippStsSizeErr
- Indicates an error when at least one of thedstLenvalues is less than, or equal to zero.