6.7.39 VectorToMatrix

6.7.39.1 Outline of the node

Convert the Vector<ObjectRef> type to the Matrix<ObjectRef> type when the ObjectRef of the Vector<ObjectRef> given as the input is either the float type or the complex<float> type.

6.7.39.2 Necessary file

No files are required.

6.7.39.3 Usage

When to use

This node is used to convert the Vector<ObjectRef> type to the Matrix<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 Matrix<float> . Taking a Vector<complex<float> > as the input will output a Matrix<complex<float> > .

6.7.39.4 Input-output and property of the node

Input

INPUT

: any  type. Note that the supported data types are the Vector<float> type and the Vector<complex<float> > type.

Output

OUTPUT

: any  type. Note that the supported data types are the Matrix<float> type and the Matrix<complex<float> > type.

Parameter

Table 6.147: Parameter list of VectorToMatrix 

Parameter name

Type

Default value

Unit

Description

OUTPUT_TYPE

string 

row_vector

 

The type of the Matrix to output. Select row_vector or columun_vector.

DEBUG

bool 

false

 

Enable or disable to output the conversion status to standard output.

OUTPUT_TYPE

: string  type. The type of the Matrix to output. Select row_vector or column_vector. Selecting row_vector will output a matrix with one row and N columns where N is the size of the Vector given as the input. Selecting column_vector will output a matrix with N rows and one column where N is the size of the Vector given as the input. The default value is row_vector.

DEBUG

: bool  type. Setting the value to true outputs the conversion status to the standard output. The default value is false.

6.7.39.5 Details of the node

Table 6.148: Conversion table of VectorToMatrix 

INPUT

OUTPUT_TYPE

OUTPUT

 

type

size

 

type

size

 

Vector<float> 

 

row_vector

Matrix<float> 

1 x N

(1)

 

N

column_vector

 

N x 1

(2)

Vector<complex<float> > 

 

row_vector

Matrix<complex<float> > 

1 x N

 
   

column_vector

 

N x 1

 

$<$example$>$

INPUT:

  \[ \begin{tabular}{c} $<$ 1 ~ 2 ~ 3 ~ 4 ~ 5 $>$ \end{tabular} \]    

OUTPUT(1):

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

OUTPUT(2):

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