Times

Elementwise multiplication of two vectors of the same length

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The output vector y is obtained by elementwise multiplication of the input vectors u1 and u2, which need to have the same length nin:

y_i = u1[i] * u2[i]

Parameters (1)

nin

Value: 2

Type: Integer

Description: Length of input and output vectors

Connectors (3)

u1

Type: RealMultiInput[nin]

Description: Input vector 1

u2

Type: RealMultiInput[nin]

Description: Input vector 2

y

Type: RealMultiOutput[nin]

Description: Output vector of the same length as inputs

Used in Components (1)

DotProduct

BusinessSimulation.Converters.Vector

Dot product of two vectors of equal length