Element Product
The Element Product block multiplies each element of one input by the matching element of the
other. With a constant array on one input, it is a per-axis gain.
Behavior
Section titled “Behavior”y = a .* b
| Port | Direction | Type |
|---|---|---|
| 0, 1 | Input | The same numeric array, [f64; 3] by default |
| 0 | Output | Same type as inputs |
The block follows the type wired into it, so [f32; 3] and any other length work too.
Parameters
Section titled “Parameters”None.
Example
Section titled “Example”For a = [1.0, 2.0, 3.0] and gains b = [0.5, 0.5, 2.0], the output is y = [0.5, 1.0, 6.0].