CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.Rn.vee

Recover an R^n algebra vector from its homogeneous matrix

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputmatrixRepresentationReal[:, size(matrixRepresentation, 1)]
outputtangentReal[size(matrixRepresentation, 1) - 1]

Modelica declarations and implementation

Show parameters, interfaces and source

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

function vee "Recover an R^n algebra vector from its homogeneous matrix"
  input Real matrixRepresentation[:, size(matrixRepresentation, 1)];
  output Real tangent[size(matrixRepresentation, 1) - 1];
algorithm
  tangent := matrixRepresentation[
    1:(size(matrixRepresentation, 1) - 1), size(matrixRepresentation, 1)];
end vee;