6.7.19 VectorToMatrix

6.7.19.1 ノードの概要

Vector<ObjectRef> 型と Matrix $<$ ObjectRef $>$ 型の変換を行う.

6.7.19.2 必要なファイル

無し.

6.7.19.3 使用方法

どんなときに使うのか

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

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

入力

INPUT

: Vector<ObjectRef> 型の,Vector<float> または Vector<complex<float> > 型.

出力

OUTPUT

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

パラメータ

Table 6.100: VectorToMatrix パラメータ表

パラメータ名

デフォルト値

単位

説明

OUTPUT_TYPE

string 

row

 

出力される行列の方向の指定.row, column から選択する.それぞれ,列方向,行方向を示す.

DEBUG

bool 

false

 

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

OUTPUT_TYPE

: string 型. 出力される行列の方向を指定する. row, column から選択. 入力 Vector のサイズが N の場合,row が選択されると,N 行 1 列の Matrix に, coulmn が選択されると,1 行 N 列の Matrix になる. デフォルト値は row.

DEBUG

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

6.7.19.5 ノードの詳細

Table 6.101: VectorToMatrix 変換表

INPUT

OUTPUT

OUTPUT_TYPE

 

type

size

type

size

   

Vector<float> 

 

Matrix<float> 

N x 1

row

(1)

 

N

 

1 x N

column

(2)

Vector<complex<float> > 

 

Matrix<complex<float> > 

N x 1

row

 
     

1 x N

column

 

<例>

INPUT: $<$ 1 2 3 4 5 $>$


OUTPUT(1):

  \[ \left[ \begin{array}{c} 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ \end{array} \right] \]    

OUTPUT(2):

  \[ \left[ \begin{array}{ccccc} 1 & 2 & 3 & 4 & 5 \\ \end{array} \right] \]