CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.SO2.vee

Skew-symmetric matrix to so(2) scalar

Public declarations

Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.

RoleNameTypeDimensions / attributes / defaultDescription
inputmatrixRepresentationReal[2, 2]
outputomegaReal

Modelica declarations and implementation

Show parameters, interfaces and source

Parameters, inputs, outputs, defaults and equations from the source file.

function vee "Skew-symmetric matrix to so(2) scalar"
  input Real matrixRepresentation[2, 2];
  output Real omega;
algorithm
  omega := 0.5 * (matrixRepresentation[2, 1] - matrixRepresentation[1, 2]);
end vee;