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. Setting the value to true outputs the conversion status to the standard output. The default value is false.
INPUT |
OUTPUT_TYPE |
OUTPUT |
|||
type |
size |
type |
size |
||
row_vector |
1 x N |
(1) |
|||
N |
column_vector |
N x 1 |
(2) |
||
row_vector |
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] \] |