template <typename t_DataType, unsigned int t_LogParEntries, typename t_IndexType = unsigned int> void nrm2(unsigned int p_n, hls::stream<WideType<t_DataType,(1<<t_LogParEntries)>>& p_x, t_DataType& p_res)
The nrm2 function that returns the Euclidean norm of the vector x.
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 % (1<<l_LogParEntries) == 0. |
p_x | The input stream of packed vector entries. |
p_res | The nrm2 of x. |