6.7.31 VectorToMatrix

6.7.31.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.31.2 Necessary file

No files are required.

6.7.31.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.31.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.119: 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. The default value is false. Setting the value to trueoutputs the conversion status to the standard output.

6.7.31.5 Details of the node

Table 6.120: Conversion table of VectorToMatrix 

INPUT

OUTPUT

OUTPUT_TYPE

 

type

size

type

size

   

Vector<float> 

 

Matrix<float> 

1 x N

row_vector

(1)

 

N

 

N x 1

column_vector

(2)

Vector<complex<float> > 

 

Matrix<complex<float> > 

1 x N

row_vector

 
     

N x 1

column_vector

 

$<$example$>$

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


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] \]