6.7.14 MatrixToMatrix

6.7.14.1 Outline of the node

Convert the data type of the ObjectRef of the Matrix<ObjectRef> given as the input, between the Matrix<float> type and the Matrix<complex<float> > type.

6.7.14.2 Necessary file

No files are required.

6.7.14.3 Usage

When to use

This node is used to convert the data type of the ObjectRef of the Matrix<ObjectRef> given as the input; the Matrix<float> type to the Matrix<complex<float> > type, the Matrix<complex<float> > type to the Matrix<float> type.

6.7.14.4 Input-output and property of the node

Input

INPUT

: any type. Note that the supported data types are the Matrix<float> type and the Matrix<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.100: Parameter list of MatrixToMatrix 

Parameter name

Type

Default value

Unit

Description

METHOD_COMPLEX_TO_FLOAT

string 

magnitude

 

The method to convert complex to float . Select magnitude, real, or imaginary. Output the absolute value, the real part, and the imaginary part, which are of the complex number, respectively.

METHOD_FLOAT_TO_COMPLEX

string 

zero

 

The method to convert float to complex . Select zero or hilbert. For the imaginary part, output 0 or the absolute value of the real part after converted to complex .

DEBUG

bool 

false

 

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

METHOD_COMPLEX_TO_FLOAT

: string type. The method to convert the Matrix<complex<float> > type to the Matrix<float> type. Select magnitude, real, or imaginary. Output the absolute value, the real part, and the imaginary part, which are of the complex number, respectively. The default value is magnitude.

METHOD_FLOAT_TO_COMPLEX

: string type. The method to convert the Matrix<float> type to the Matrix<complex<float> > type. Select zero or hilbert. For the imaginary part, output 0 by selecting zero or output the absolute value of the real part after converted to complex by selecting hilbert. The default value is zero.

DEBUG

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

6.7.14.5 Details of the node

Table 6.101: Conversion table of MatrixToMatrix 

INPUT

OUTPUT

Parameter to use

Matrix<float> 

Matrix<complex<float> > 

METHOD_FLOAT_TO_COMPLEXCOMPLEX

Matrix<complex<float> > 

Matrix<float> 

METHOD_COMPLEX_TO_FLOAT