.Modelica.Math.Vectors.reverse

Information

Syntax

Vectors.reverse(v);

Description

The function call "Vectors.reverse(v)" returns the vector elements in reverse order.

Example

reverse({1,2,3,4});  // = {4,3,2,1}

Interface

function reverse
  extends Modelica.Icons.Function;
  input Real v[:] "Real vector";
  output Real result[size(v, 1)] "Elements of vector v in reversed order";
end reverse;

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