.TRANSFORM.Math.cumulativeSum

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}

Interface

function cumulativeSum
  extends TRANSFORM.Icons.Function;
  input Real u[:];
  output Real y[size(u, 1)];
end cumulativeSum;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos