Embedded Target for Texas Instruments C6000 DSPs | ![]() ![]() |
Negate each element of an input signal
Library
C62x DSP Library--Math and Matrices
Description
The Vector Negate block negates each element of a 32-bit signed fixed-point input signal. For real signals, the number of input elements must be even and at least four. For complex signals, the number of input elements must be at least two. The output is the same data type as the input.
The Vector Negate 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 Negate block is equivalent to the TMS320C62x DSP Library assembly code function DSP_neg32
. During code generation, this block calls the DSP_neg32
routine to produce optimized code.
![]() | Vector Multiply | Vector Sum of Squares | ![]() |