Minimum absolute value with index
FwStatus | fwsMinAbsIndx_16s | ( | const Fw16s * pSrc, int len, Fw16s * pMinAbs, int * pIndx ); | |
FwStatus | fwsMinAbsIndx_32s | ( | const Fw32s * pSrc, int len, Fw32s * pMinAbs, int * pIndx ); |
len | Specifies the number of elements in a buffer. | |
pIndx | Pointer to the destination buffer that contains the index of the maximum or minimum value in the source buffer. | |
pMinAbs | Pointer to the destination buffer that contains the minimum absolute value in the source buffer. | |
pSrc | Pointer to a source buffer. |
These functions step through vector elements in a source buffer, find the minimum absolute value and its index.
The minimum absolute value and the index are written to locations specified by pointers.