Embedded Target for Texas Instruments C6000 DSPs | ![]() ![]() |
Compute the vector dot product of two real input signals
Library
C62x DSP Library--Math and Matrices
Description
The Vector Dot Product block computes the vector dot product of two real input vectors, X and Y. The input vectors must have the same dimensions and must be signed 16-bit fixed-point data types. The number of samples per channel of the inputs must be even and greater than or equal to four. The output is a signed 32-bit fixed-point scalar on each channel, and the number of fractional bits of the output is equal to the sum of the number of fractional bits of the inputs.
The Vector Dot Product block supports both continuous and discrete sample times. This block also supports both little-endian and big-endian code generation.
Dialog Box
Algorithm
In simulation, the Vector Dot Product block is equivalent to the TMS320C62x DSP Library assembly code function DSP_dotprod
. During code generation, this block calls the DSP_dotprod
routine to produce optimized code.
![]() | To Rtdx | Vector Maximum Index | ![]() |