Hi,
I am executing C codes in VIVADO HLS. Values of Matrix showing in Negative value so i added "abs" but in VIVADO HLS, abs function is not accepted. Therefore, what i can replace "abs" in the code.
Code:for(i2 = 0;i2<r;i2++) //Making the elements below and above the diagonal as '1' { if(i2 != i && H[i2][j] == 1) { for(j2=0;j2<c;j2++) { H[i2][j2] = abs(H[i][j2] - H[i2][j2]); // "abs" how to replace in this line } } } }