![]() |
![]() |
Collaboration diagram for DSP_maxidx:
![]() |
int | DSP_maxidx (const short *x, int nx) |
int DSP_maxidx | ( | const short * | x, | |
int | nx | |||
) |
This routine finds the max value of a vector and returns the index of that value. The input array is treated as 16 separate columns that are interleaved throughout the array. If values in different columns are equal to the maximum value, then the element in the leftmost column is returned. If two values within a column are equal to the maximum, then the one with the lower index is returned. Column takes precedence over index. return int Index for vector element with maximum value.
x | = Pointer to input vector of size nx. Must be double-word aligned | |
nx | = Length of input data vector. Must be multiple of 16 and >=48 |