Engee documentation

Array-Vector Multiply

Multiplies the elements of a vector by the elements of an array along the specified dimension.

array vector multtiply

Description

Block Array-Vector Multiply multiplies the values of the n-dimensional input array A by the values in the input vector V in the given dimension.

The length of the input V must be the same as the length of the given dimension A. The block Array-Vector Multiply multiplies each element of V by the corresponding element of A.

Consider a three-dimensional input array A (i, j, k) of size M by N by P and an input vector V of size N by 1. If the parameter Multiply along dimension is set to 2, the output of the block Y(i,j,k):

,

where:

The output of the block Array-Vector Multiply has the same size as the input array A. This block supports valid and complex input data.

Ports

Input

A - input array
vector | matrix

Input array; vector or matrix.

Data types: Float64

Support for complex numbers: Yes

V - input vector
vector | matrix

Input vector.

Dependencies

This port is used only when you set the Vector (V) source parameters to Input port.

Data types: Float64

Support for complex numbers: Yes

Output

Port_1 - output array
vector | matrix

Block output; vector or matrix.

Data types: Float64

Parameters

Multiply along dimension - dimension for multiplication
1 (by default) | positive number

Sets the dimension by which the elements of the input array A will be multiplied by the elements of the vector V.

Data types: Float64

Vector (V) source - vector source
Input port (by default) | `Dialog parameter `

Sets the source of vector V.

  • Input port - input port vector source.

  • Dialog parameter - source vector value of parameter Vector (V).

Vector (V) - vector
[0.5 0.25] (by default) | vector

Sets the vector V.

Dependencies

This parameter is only used when Dialog parameter is selected for the Vector (V) source parameters.

Data types: Float64