functioncumulativeSum
Extends from Modelica.Icons.Function (Icon for functions).
Information
Calculates a cumulative sum of an array:
Example:
input u = {0.2,0.2,0.2,0.2,0.2};
output y = {0.2,0.4,0.6,0.8,1.0}
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | u |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(u, 1)] | y |