selector¶
Parameters¶
Parameter label |
I/O type |
Data type |
Mandatory parameter? |
Default value |
|---|---|---|---|---|
|
input |
vector |
yes |
N/A |
|
input |
vector |
yes |
N/A |
|
output |
vector |
N/A |
N/A |
Functionality¶
Module selects all elements from inputVec, where the corresponding indices in selectVec are
greater than zero or set to True.
The selected values are stored as vector in ouputVec.
If selectVec has only one element, it is interpreted as the index of the element of inputVec that will be selected and stored into outputVec.
Here are two examples:
inputVec = [1,2,3,4,5]
selectVec = [True,False,True,False,True]
...
outputVec = [1,3,5]
inputVec = [1,2,3,4,5]
selectVec = [1]
...
outputVec = [2]