6.7.30 VectorToMap

6.7.30.1 ノードの概要

Vector<float> 型から Map$<$int, Vector<float> $>$ 型へ,または, Vector<complex<float> > 型から Map$<$int, Vector<complex<float> > $>$ 型へ変換を行う.

6.7.30.2 必要なファイル

無し.

6.7.30.3 使用方法

どんなときに使うのか

Vector<float> または Vector<complex<float> > 型 を Map<int, ObjectRef> 型に変換する際に用いる.入力が Vector<float> の場合,出力は Map$<$int, Vector<float> $>$ に,入力が Vector<complex<float> > の場合,出力は Map$<$int, Vector<complex<float> > $>$ になる.

6.7.30.4 ノードの入出力とプロパティ

入力

INPUT

: any .ただし,サポートする型は Vector<float> または Vector<complex<float> > 型.

出力

OUTPUT

: Map<int, ObjectRef> 型の,Map$<$int, Vector<float> $>$ または Map$<$int, Vector<complex<float> > $>$ 型

パラメータ

Table 6.117: VectorToMap パラメータ表

パラメータ名

デフォルト値

単位

説明

OUTPUT_TYPE

string 

map_of_vector

 

出力される型の指定.map_of_vector, map_of_vectors から選択する.

DEBUG

bool 

false

 

変換状況を出力するかどうかの選択.

OUTPUT_TYPE

: string 型. 出力される型を指定する.       map_of_vector, map_of_vectors から選択. map_of_vector が選択されると,キーに 0,値に入力の Vector がセットされる. map_of_vectors が選択されると,キーに Vector のインデクス,値に入力の各要素の Vector がセットされる. デフォルトは map_of_vector

DEBUG

: bool 型. デフォルトは falsetrueが与えられると, 変換状況が標準出力に出力される.

6.7.30.5 ノードの詳細

Table 6.118: VectorToMap 変換表

INPUT

OUTPUT

OUT_TYPE

 

type

size

type

size

   

Vector<float> 

 

Map$<$int, Vector<float> $>$

{N}x1

map_of_vector

(1)

 

N

 

{1}xN

map_of_vectors

(2)

Vector<complex<float> > 

 

Map$<$int, Vector<complex<float> > $>$

{N}x1

map_of_vector

 
     

{1}xN

map_of_vectors

 

<例>

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 $>$ }