| Algorithm 2. Calculate the dot product of two one-dimensional vectors of size 200 |
| void prod (short *in_a, short * in_b, short *out, short len){ int i; for (i = 0; i++; i < len){ out[i] = in_a[i]*in_b[i]; } } |
| Algorithm 2. Calculate the dot product of two one-dimensional vectors of size 200 |
| void prod (short *in_a, short * in_b, short *out, short len){ int i; for (i = 0; i++; i < len){ out[i] = in_a[i]*in_b[i]; } } |