blockDotProduct

Dot product of two vectors of equal length

Extends from Interfaces.PartialConverters.SO (Generic converter for signals).

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

TypeNameDefaultDescription
Structural Parameters
Integernin2Elements in the input vectors (length)

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.RealMultiInputu1Input vector 1
Interfaces.Connectors.RealMultiInputu2Input vector 2

Components

TypeNameDefaultDescription
RealOutputy (from SO)
Timestimes
Totaltotal