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.
No files are required.
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> > .
Input
: any type. Note that the supported data types are the Vector<float> type and the Vector<complex<float> > type.
Output
: any type. Note that the supported data types are the Matrix<float> type and the Matrix<complex<float> > type.
Parameter
Parameter name |
Type |
Default value |
Unit |
Description |
OUTPUT_TYPE |
row_vector |
The type of the Matrix to output. Select row_vector or columun_vector. |
||
DEBUG |
false |
Enable or disable to output the conversion status to standard output. |
: 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.
: bool type. The default value is false. Setting the value to trueoutputs the conversion status to the standard output.
INPUT |
OUTPUT |
OUTPUT_TYPE |
|||
type |
size |
type |
size |
||
1 x N |
row_vector |
(1) |
|||
N |
N x 1 |
column_vector |
(2) |
||
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] \] |