blockSum

Add two vectors of equal length

Extends from Interfaces.Basics.BaseConverter (Basic converter class).

Information

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

The output vector y is the sum of the input vectors u1 and u2, which need to have length nin:

y_i = u1[i] + u2[i]

Parameters

TypeNameDefaultDescription
Structural Parameters
Integernin2Length of input and output vectors

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.RealMultiInput[nin]u1Input vector 1
Interfaces.Connectors.RealMultiInput[nin]u2Input vector 2

Components

TypeNameDefaultDescription
RealMultiOutput[nin]yOutput with same dimension as inputs