Engee documentation

Complex to Real-Imag

Outputs the real and imaginary parts of the complex input signal.

blockType: ComplexToRealImag

Path in the library:

/Basic/Math Operations/Complex to Real-Imag

Description

Block Complex to Real-Imag outputs the real and/or imaginary part of the input signal, depending on the parameter setting Output. Real outputs have the same data type as the complex input. The input can be an array (vector or matrix) of complex signals, in which case the output signals are arrays of the same dimension. A real array contains real (real) parts of the corresponding complex input elements, an imaginary array similarly contains imaginary parts of the input elements.

The block icon and the number of output ports change depending on the value of the parameters Output.

Ports

Output

# Re — output signal
scalar | vector | matrix

Details

The output signal is the actual component of the input signal.

Dependencies

To use this port, set the parameters to Output value Real and imag or Real

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Fixed, Bool.

Complex numbers support

Yes

# Im — output signal
scalar | vector | matrix

Details

The output signal is the imaginary component of the input signal.

Dependencies

To use this port, set the parameters to Output value Real and imag or Imag.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Fixed, Bool, .

Complex numbers support

Yes

Input

# u — input signal
scalar | vector | matrix

Details

A complex input signal which a unit processes and whose real and/or imaginary part it outputs.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Fixed, Bool.

Complex numbers support

Yes

Parameters

Main

# Output — type of output: actual and/or imaginary part
Real | Imag | Real and imag

Details

Specifies whether the unit outputs the real part, imaginary part, or both.

Values

Real | Imag | Real and imag

Default value

Real and imag

Program usage name

Output

Tunable

No

Evaluatable

No

Additional options

C code generation: Yes