![]() |
![]() |
Collaboration diagram for DSP_dotp_sqr:
|
| int | DSP_dotp_sqr (int G, const short *x, const short *y, int *restrict r, int nx) |
| int DSP_dotp_sqr | ( | int | G, | |
| const short * | x, | |||
| const short * | y, | |||
| int *restrict | r, | |||
| int | nx | |||
| ) |
This routine performs an nx element dot product of x[ ] and y[ ] and stores it in r. It also squares each element of y[ ] and accumulates it in G. This computation of G is used in the VSELP coder.
| G | = Calculated value of G (used in the VSELP coder) | |
| x | = First vector array | |
| y | = Second vector array | |
| r | = Result of vector dot product of x and y | |
| nx | = Number of elements |