Multiplier

| Vectorized | C |
in the palette on the schematic

The block implements the multiplication of the input scalar signal (or elements of the vector input signal) by a column vector (or column vectors) of gain ratios.

If the input is a scalar signal u(t), the block implements the function of a multichannel amplifier link:

where u(t) is the input signal (scalar), ki is the element of the vector-column of the gain ratios k = [k1, k2, …, km], yi(t) – is the element of the output vector signal y(t) = [y1(t), y2(t),… ym(t)]. In this case, the dimension of the output signal is determined by the dimension of the gain vector.

If a vector signal is supplied to the input of the block (with a dimension of n≥2), then the corresponding number of n column vectors of the same dimension m should be set as the multiplication coefficients. The number of column vectors of the multiplication coefficients must necessarily be equal to the dimension of the input vector signal. In this case, the block implements the transformation of the input vector signal according to the algorithm:

The input vector u(t), interpreted as a row vector, is transformed into a matrix of size n×m, each j-th column of which is obtained from the j-th element of the input vector by multiplying by the j-th vector-column of the gain coefficients. Then the matrix is read from the rows and the resulting vector y(t) is fed to the output of the block.

Inputs

  • input - input vector port.

Outputs

  • output - output vector port.

Properties:

  • The multiplication coefficients are the vector (or vectors) of the multiplication coefficients k = [k1, k2, …, km] or k = [[k1 1, k1 2, …, k1 m], [k2 1, k2 2, …, k2 m],…,[kn 1, kn 2, …, kn m].
Assume that the input signal x(t)=[x1(t), x2(t)] is 2-core (N = 2). It is necessary to multiply this vector 3 times (M = 3), and the signal on the 1st "core" of the input vector must be amplified 2, 3 and 5 times, and the signal on the 2nd "core" of the input vector must be amplified 4, 2 and 7 times, respectively. Numerical form of setting the gain coefficients: [[2,3,5], [4,2,7]]. Then the output vector will have the value:

Parameters

None

Прим.:
  1. The dimension of the output signal is equal to the product of the dimension of the input signal and the number of vectors of the multiplication coefficients – n×m.
  2. Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using a attachable signal database.