Engee documentation

Vector Concatenate

Combining input vectors for iterative processing.

blockType: Concatenate

Vector Concatenate

Path in the library:

/Basic/Matrix Operations/Vector Concatenate

Matrix Concatenate

Path in the library:

/Basic/Matrix Operations/Matrix Concatenate

Description

Block Vector Concatenate combines the input signals into one common one, which can be iteratively processed using a subsystem, for example, for-each, while-iterator or for-iterator.

You can use multiple blocks Vector Concatenate to create the output signal in stages, but the result will be the same as when using a single block.

The input port numbers are specified in the Edit inputs field (Examples: 1, 12, 123, 213). They can be written in any order, however, concatenation will occur in ascending order of port numbers.

Ports are specified in numbers; the port number should not be greater than the number of ports (i.e., you cannot write, for example, 124).

If the unit has one input port, the output will be exactly the same as the input, even if Concatenate dimension more than the number of input dimensions.

Ports

Output

# OUT_1 — combined signal
vector

Details

Combining input signals according to a given measurement. The output signals have the same data type as the input signals.

Data types

Float64, Bool

Complex numbers support

I don’t

Input

# IN_1 — Input for combining signals
vector

Details

The input vector for the union.

Data types

Float64, Bool

Complex numbers support

I don’t

# IN_2 — The nth Input for combining signals
vector

Details

The input vector for the union.

Data types

Float64, Bool

Complex numbers support

I don’t

Parameters

Main

# Number of input — number and names of input ports

Details

The number of input ports of the block is equal to the number of characters in this line. The symbols become the names of these ports.

Default value

2

Program usage name

NumInputs

Tunable

No

Evaluatable

Yes

# Mode — usage in simulation
Vector | Multidimensional array

Details

Determines whether the block works in the mode of combining vectors or multidimensional arrays.

  • Vector. The input can only be signals that have no more than two dimensions: scalars, vectors and matrices on and on . A row vector and a column vector cannot be combined.

    The number of dimensions at the output is equal to the largest number of dimensions at the input, except when there are only scalars at the output.

    If the parameter Mode set to value Vector, then the parameter Concatenate dimension ignored.

  • Multidimensional array. In this mode, the field must be specified Concatenate dimension.

    Important! All dimensions of the inputs, except the one whose number is equal to Concatenate dimension, must be equal.

    If Concatenate dimension If the maximum number of dimensions of the inputs is not greater than the maximum number of dimensions of the inputs, then the number of dimensions at the output is equal to the largest number of dimensions at the input, except when only scalars are at the output.

    If Concatenate dimension If there is more than the maximum number of input dimensions, then the input dimensions are supplemented with units.

    If the inputs have a different number of dimensions, then the missing dimensions are considered equal 1.

Values

Vector | Multidimensional array

Default value

Program usage name

Mode

Tunable

No

Evaluatable

No

# Concatenate dimension — the dimension by which the input signals are combined
Real number

Details

The dimension of the output array by which the input arrays will be combined.

Parameter Concatenate dimension must be a positive integer.

In the mode Vector The input signals cannot have more than two dimensions.

In the mode Multidimensional array all dimensions of the inputs, except the one whose number is equal to Concatenate dimension, must be equal.

Default value

2

Program usage name

ConcatenateDimension

Tunable

No

Evaluatable

Yes

Additional options

C code generation: Yes