functionSigma
Return the sum of the first and second entries of a vector (Σ)
Extends from Modelica.Icons.Function (Icon for functions).
Information
The translator should automatically
vectorize (or "matricize") this function. For example, Sigma([1,2;3,4]) returns {3,7}.
In contrast, sum([1,2;3,4]) returns 10.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[2] | u | Vector of size two |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Sigma | Sum of the first and second entries |