Embedded Target for Texas Instruments C6000 DSPs    
Vector Sum of Squares

Compute the sum of squares over each channel of a real input

Library

C62x DSP Library--Math and Matrices

Description

The Vector Sum of Squares block computes the sum of squares over each channel of a real input. The number of samples per input channel must be even and at least eight, and the input must be a 16-bit signed fixed-point data type. The output is a 32-bit signed fixed-point scalar on each channel. The number of fractional bits of the output is twice the number of fractional bits of the input.

The Vector Sum of Squares 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 Sum of Squares block is equivalent to the TMS320C62x DSP Library assembly code function DSP_vecsumsq. During code generation, this block calls the DSP_vecsumsq routine to produce optimized code.


  Vector Negate Weighted Vector Sum