amin - 2024.1 English

Vitis Libraries

Release Date
2024-08-06
Version
2024.1 English
template  <typename t_DataType, unsigned int t_LogParEntries, typename t_IndexType>
void amin(unsigned int p_n, hls::stream<WideType<t_DataType,(1<<t_LogParEntries)>>& p_x, t_IndexType& p_result)

The amin function that returns the position of the vector element that has the minimum magnitude.

Parameters:

t_DataType The data type of the vector entries.
t_LogParEntries log2 of the number of parallelly processed entries in the input vector.
t_IndexType The datatype of the index.
p_n The number of entries in the input vector p_x, p_n % l_ParEntries == 0.
p_x The input stream of packed vector entries.
p_result The resulting index, which is 0 if p_n <= 0.