Convert the Vector<ObjectRef> type to the Map<int, ObjectRef> type when the ObjectRef of the Vector<ObjectRef> given as the input is either the float type or the complex<float> type.
No files are required.
When to use
This node is used to convert the VecObj type to the Map<int, ObjectRef> type when the ObjectRef of the Vector<ObjectRef> given as the input is either the float type or the complex<float> type. Taking a Vector<float> as the input will output a Map$<$int , Vector<float> $>$. Taking a Vector<complex<float> > as the input will output a Map$<$int , Vector<complex<float> > $>$.
Input
: any type. Note that the supported data types are the Vector<float> type and the Vector<complex<float> > type.
Output
: Map$<$int , Vector<float> $>$, or Map$<$int , Vector<complex<float> > $>$ of the Map$<$ObjectRef $>$ type.
Parameter
Parameter name |
Type |
Default value |
Unit |
Description |
OUTPUT_TYPE |
map_of_vector |
The data type of the output data. Select map_of_vector or map_of_vectors. |
||
DEBUG |
false |
Enable or disable to output the conversion status to standard output. |
: string type. The data type of the output data. Select map_of_vector or map_of_vectors. Selecting map_of_vector outputs a Map whose key is 0 and whose ObjectRef is the Vector given as the input. Selecting map_of_vectors outputs Map as many as the number of elements of the Vector given as the input. The each Map’s key is the index of the Vector and the each ObjectRef is a Vector consisting of an element corresponding to the index. The default value is map_of_vector.
: bool type. The default value is false. Setting the value to trueoutputs the conversion status to the standard output.
INPUT |
OUTPUT |
OUT_TYPE |
|||
type |
size |
type |
size |
||
Map$<$int , Vector<float> $>$ |
{N}x1 |
map_of_vector |
(1) |
||
N |
{1}xN |
map_of_vectors |
(2) |
||
Map$<$int , Vector<complex<float> > $>$ |
{N}x1 |
map_of_vector |
|||
{1}xN |
map_of_vectors |
$<$example$>$
INPUT: $<$ 1 2 3 4 5 $>$
↓
OUTPUT(1): { 0, $<$ 1 2 3 4 5 $>$ }
OUTPUT(2): { 0, $<$ 1 $>$ }, { 1, $<$ 2 $>$ }, { 2, $<$ 3 $>$ }, { 3, $<$ 4 $>$ }, { 4, $<$ 5 $>$ }