Collaboration diagram for DSP_dotprod:
int | DSP_dotprod (short *restrict x, short *restrict y, int nx) |
int DSP_dotprod | ( | short *restrict | x, | |
short *restrict | y, | |||
int | nx | |||
) |
This routine takes two vectors and calculates their dot product. The inputs are 16-bit short data and the output is a 32-bit number.
x | = First vector array | |
y | = Second vector array | |
nx | = Number of elements |