Unary Minus
Page in progress. |
Inverts the input signal.
blockType: UnaryMinus
Path in the library:
|
Ports
Input
#
IN_1
—
input signal
scalar
| vector
| matrix
Details
Input signal as a scalar, vector or matrix.
Data types |
|
Complex numbers support |
No |
Output
#
OUT_1
—
output signal
scalar
| vector
| matrix
Details
Input signal taken with the opposite sign. The output data has the same data type and dimensionality as the input.
Data types |
|
Complex numbers support |
No |
Parameters
Parameters
#
Saturate on integer overflow —
method of action in case of overflow
Logical
Details
When this check box is selected, the value that goes beyond the type limits is reset to the maximum or minimum value that the selected data type can represent. Otherwise, overflow transfer occurs.
When this option is selected, saturation is applied to all internal operations in the block, not just to the output or result. In general, the code generation process can determine when overflow is not possible. In this case, the code generator does not generate a saturation code.
For signed, integer data types, the unary minus of the largest negative value cannot be represented by this data type. In this case, the checkbox Saturate on integer overflow controls the behavior of the block:
Parameter Setting | Block behavior | Examples |
---|---|---|
The flag Saturate on integer overflow installed (enabled) |
The values are saturated to the largest positive value of the integer data type. |
For signed
|
The flag Saturate on integer overflow removed (disabled) |
Values are carried over to the largest negative value of the integer data type. |
For signed
|
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
No |