sign¶
Parameters¶
Parameter label |
I/O type |
Data type |
Mandatory parameter? |
Default value |
---|---|---|---|---|
|
input |
vector |
yes |
N/A |
|
output |
vector |
N/A |
N/A |
Functionality¶
Module computes the element-wise sign (signum function) on inputVec
and stores the result in outputVec
.
Here is an example:
inputVec = [1,-2,-3,4,-5]
...
outputVec = [1,-1,-1,1,-1]