Engee documentation

Flip

Reverses the input signal vertically or horizontally.

blockType: Flip

Path in the library:

/Signal Operations/Signal Management/Indexing/Flip

Description

The Flip block vertically or horizontally flips the input matrix to . The block defines the dimension to flip using the parameters Flip along.

Ports

Input

# IN — input signal
matrix

Details

Input signal specified as a matrix to .

Data types

Float32, Float64, Int8, Int16, Int32, UInt8, UInt16, UInt32, Bool, Fixed-point

Complex numbers support

No

Output

# OUT — inverted output matrix
matrix

Details

An inverted output signal returned as a matrix to . The output signal always has the same dimensionality as the input signal.

Data types

Float32, Float64, Int8, Int16, Int32, UInt8, UInt16, UInt32, Bool, Fixed-point.

Complex numbers support

No

Parameters

Parameters

# Flip along — the size along which to roll
Rows | Columns

Details

Specify the dimension along which to flip the input data as Columns or Rows.

  • When set to Columns the block flips the input data vertically, so that the first line of the input data becomes the last line of the output data.

When flipping the signal vertically, the block treats undirected vector signals of length as column vectors to .

  • When setting the value Rows the block flips the input data horizontally, so that the first column of the input becomes the last column of the output data.

When flipping the signal horizontally, the block treats undirected vector signals of length as vectors of by rows.

Values

Rows | Columns

Default value

Columns

Program usage name

FlipAlong

Tunable

No

Evaluatable

No