SortIndexAscend, SortIndexDescend
SortIndexAscend
, SortIndexDescend
Rearranges elements of the vector and their indexes.
Syntax
IppStatus ippsSortIndexAscend_8u_I(Ipp8u*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexAscend_16u_I(Ipp16u*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexAscend_16s_I(Ipp16s*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexAscend_32s_I(Ipp32s*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexAscend_32f_I(Ipp32f*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexAscend_64f_I(Ipp64f*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexDescend_8u_I(Ipp8u*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexDescend_16u_I(Ipp16u*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexDescend_16s_I(Ipp16s*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexDescend_32s_I(Ipp32s*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexDescend_32f_I(Ipp32f*
pSrcDst
, int*
pDstIdx
, int
len
);
IppStatus ippsSortIndexDescend_64f_I(Ipp64f*
pSrcDst
, int*
pDstIdx
, int
len
);
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.
- pDstIdx
- Pointer to the destination vector containing indexes.
- len
- Number of elements in the vector
Description
These functions rearrange all elements of the source vector
pSrcDst
in the ascending or descending order, respectively, and store the elements in the destination vector pSrcDst
, and their indexes in the desalination vector pDstIdx
. If some elements are identical, their indexes are not ordered.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error when one of the specified pointers isNULL.
- ippStsSizeErr
- Indicates an error whenlenis less than or equal to 0.