.Modelica.ComplexMath.Vectors.reverse

Reverse vector elements (e.g., v[1] becomes last element)

Information

Syntax

Vectors.reverse(v);

Description

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

Example

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

Interface

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

Generated at 2025-04-03T18:24:42Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos