Array-Vector Multiply
Multiplies the elements of the vector by the elements of the array according to the specified dimension.
blockType: ArrayVectorMultiply
Path in the library:
|
Description
Block Array-Vector Multiply multiplies values -dimensional input array on the values in the input vector in a given dimension.
Input length must be the same as the length of the specified dimension . Block Array-Vector Multiply multiplies each element to the corresponding element .
Consider a three-dimensional input array size on on and the input vector size to 1'. If the Multiply along dimension parameter is set to `2
, the block output :
Where:
Block output Array-Vector Multiply has the same size as the input array . 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
The input vector.
Dependencies
This port is used only when you set the Vector (V) source parameter to Input port
.
Data types: Float64
Support for complex numbers: Yes
Parameters
Multiply along dimension — dimension for multiplying
1 (by default)
| positive number
Sets the dimension by which the elements of the input array will be multiplied by the elements of the vector .
Data types: Float64
Vector (V) source — the source of the vector
Input port (by default)
| Dialog parameter
Sets the vector source .
-
`Input port' — source of the input port vector.
-
`Dialog parameter' — vector source value of the Vector (V) parameter.
Vector (V) — vector
[0.5 0.25] (by default)
| vector
Sets the vector V.
Dependencies
This parameter is used only when you select the Dialog parameter
value for the Vector (V) source parameter.
Data types: Float64