.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 2025-01-21T19:25:52Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos