Embedded Target for Texas Instruments C6000 DSPs | ![]() |
Find the weighted sum of two input vectors
Library
C62x DSP Library--Math and Matrices
Description
The Weighted Vector Sum block computes the weighted sum of two inputs, X and Y, according to (W*X)+Y. Inputs may be vectors or frame-based matrices. The number of samples per channel must be a multiple of four. Inputs, weights, and output are Q.15 data types, and weights must be in the range -1 < W < 1.
The Weighted Vector Sum block supports both continuous and discrete sample times. This block also supports both little-endian and big-endian code generation.
Dialog Box
Specify via dialog
--Enter the weights in the Weights (W) parameter in the dialog
Input port
--Accept the weights from port W
Specify via dialog
is specified for the Weight source parameter. This parameter is tunable in simulation. When the weights areAlgorithm
In simulation, the Weighted Vector Sum block is equivalent to the TMS320C62x DSP Library assembly code function DSP_w_vec
. During code generation, this block calls the DSP_w_vec
routine to produce optimized code.
![]() | Vector Sum of Squares |