TopKGetBufferSize
TopKGetBufferSize
Computes the size of the buffer for the
TopK
function.Syntax
IppStatus ippsTopKGetBufferSize(Ipp64s
srcLen
, Ipp64s
dstLen
, IppDataType
dataType
, IppTopKMode
hint
, Ipp64s*
bufSize
);
Include Files
ipps.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
Libraries:
ippcore.lib
,
ippvm.lib
Parameters
- srcLen
- Number of elements in the source vector.
- dstLen
- Number ofKvalues to be returned, the function returnsmin(K, dstLen)elements.
- dataType
- Data type of the vector.
- hint
- Parameter to choose the optimization that is most suitable for thesrcLen+dstlen(K)combination, supported values:ippTopKAuto/ippTopKDirect/ippTopKRadix.
- bufSize
- Size of the required work buffer.
Description
This function computes the size of the work buffer required for the
ippsTopK
function.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error whenbufSizeisNULL.
- ippStsSizeErr
- Indicates an error when at least one of thesrcLenordstLenvalues is less than, or equal to zero.
- ippStsBadArgErr
- Indicates an error when thehintvalue is not supported.