MaxIndx

Maximum with index

Supported Technologies

SSE2

Synopsis

FwStatus   fwsMaxIndx_16s ( const Fw16s * pSrcint lenFw16s * pMaxint * pIndx );
FwStatus   fwsMaxIndx_32s ( const Fw32s * pSrcint lenFw32s * pMaxint * pIndx );
FwStatus   fwsMaxIndx_32f ( const Fw32f * pSrcint lenFw32f * pMaxint * pIndx );
FwStatus   fwsMaxIndx_64f ( const Fw64f * pSrcint lenFw64f * pMaxint * pIndx );

Parameters

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.
pMax   Pointer to the destination buffer that contains the maximum value in the source buffer.
pSrc   Pointer to a source buffer.

Description

These functions step through vector elements in a source buffer, find the maximum value and its index.

The maximum value is written to a maximum value buffer and the index is written to a location specified by a pointer.