Array-Vector Add
Adds vector elements to array elements along the specified dimension.
Description
Block Array-Vector Add adds the values of the input vector V to the values of the n-dimensional input array A in a given dimension.
The length of the input V must be the same as the length of the given dimension A. The block Array-Vector Add adds each element of V to 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 Add along dimension is set to 2
, the output of the block Y(i,j,k):
,
where:
.
.
.
The output of the block Array-Vector Add has the same size as the input array A. This block supports real and complex input values.
Ports
Parameters
Add along dimension - dimension for summation
1 (by default)
| positive number
Sets the dimension by which the input array A will be summed with the elements of the vector V.
Data types: Float64
Vector (V) source - vector source
Input port (by default)
| `Dialog parameter `
Set the source of the vector V.
-
Input port
- the vector is taken from the input port. -
Dialog parameter
- the vector is taken from the dialogue parameter Vector (V) .
Vector (V) - vector
[0.5 0.25] (by default)
| vector
.
Specify a vector, V.
Dependencies
This parameter is only used when Dialog parameter
is selected for the Vector (V) source parameters.
Data types: Float64