.TRANSFORM.Math.diff

Information

Calculates the difference between adjacent values in array.

For example:

u = {1,2,5,10,20};

y = {1,3,5,10};

Interface

function diff
  extends TRANSFORM.Icons.Function;
  input Real u[:] "Scalar array";
  output Real y[size(u, 1) - 1];
end diff;

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