Visible to Intel only — GUID: GUID-E6C13F0B-4B50-4D00-9501-14D8E5E84CEE
Visible to Intel only — GUID: GUID-E6C13F0B-4B50-4D00-9501-14D8E5E84CEE
MaxAbsIndx
Returns the maximum absolute value of a vector and the index of the corresponding element.
Syntax
IppStatus ippsMaxAbsIndx_16s(const Ipp16s* pSrc, int len, Ipp16s* pMaxAbs, int* pIndx);
IppStatus ippsMaxAbsIndx_32s(const Ipp32s* pSrc, int len, Ipp32s* pMaxAbs, int* pIndx);
IppStatus ippsMaxAbsIndx_32f(const Ipp32f* pSrc, int len, Ipp32f* pMaxAbs, int* pIndx);IppStatus ippsMaxAbsIndx_64f(const Ipp64f* pSrc, int len, Ipp64f* pMaxAbs, int* pIndx);
Include Files
ipps.h
Domain Dependencies
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
Parameters
pSrc |
Pointer to the source vector. |
pMaxAbs |
Pointer to the output result. |
len |
Number of elements in the vector. |
pIndx |
Pointer to the index value of the maximum element. |
Description
This function returns the maximum absolute value pMaxAbs of the input vector pSrc, and the index of the corresponding element pIndx. If there are several elements with the equal maximum absolute value, the first index from the beginning is returned.
Return Values
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to 0. |