DotProduct

Dot product of two vectors of equal length

Diagram

Information

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

The output y is the dot product of the input vectors u1 and u2 which have the same length nin.

The dot product is defined as follows:

y = sum_{i=1}^{nin} u1[i]*u2[i]

Parameters (1)

nin

Value: 2

Type: Integer

Description: Elements in the input vectors (length)

Connectors (3)

y

Type: RealOutput

Description: Output signal

u1

Type: RealMultiInput[nin]

Description: Input vector 1

u2

Type: RealMultiInput[nin]

Description: Input vector 2

Components (2)

times

Type: Times

Description: Elementwise multiplication of two vectors of the same length

total

Type: Total

Description: Gives the sum over all components of a vector