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. Setting the value to true outputs the conversion status to the standard output. The default value is false.
INPUT |
OUT_TYPE |
OUTPUT |
|||
type |
size |
type |
size |
||
map_of_vector |
Map$<$int , Vector<float> $>$ |
{N}x1 |
(1) |
||
N |
map_of_vectors |
{1}xN |
(2) |
||
map_of_vector |
Map$<$int , Vector<complex<float> > $>$ |
{N}x1 |
|||
map_of_vectors |
{1}xN |
$<$example$>$
INPUT:
\[ \begin{tabular}{c} $<$ 1 ~ 2 ~ 3 ~ 4 ~ 5 $>$ \end{tabular} \] |
OUTPUT(1):
\[ \begin{tabular}{c} \{ 0, ~ $<$ 1 ~ 2 ~ 3 ~ 4 ~ 5 $>$ \} \end{tabular} \] |
OUTPUT(2):
\[ \begin{tabular}{ccccc} \{ 0, ~ $<$ 1 $>$ \} , & \{ 1, ~ $<$ 2 $>$ \} , & \{ 2, ~ $<$ 3 $>$ \} , & \{ 3, ~ $<$ 4 $>$ \} , & \{ 4, ~ $<$ 5 $>$ \} \end{tabular} \] |