CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.Rn.to_Matrix

Homogeneous matrix representation of an R^n translation

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputelementReal[:]
outputmatrixRepresentationReal[size(element, 1) + 1, size(element, 1) + 1]

Modelica declarations and implementation

Show parameters, interfaces and source

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

function to_Matrix "Homogeneous matrix representation of an R^n translation"
  input Real element[:];
  output Real matrixRepresentation[size(element, 1) + 1,
                                   size(element, 1) + 1];
algorithm
  matrixRepresentation := identity(size(element, 1) + 1);
  matrixRepresentation[1:size(element, 1), size(element, 1) + 1] := element;
end to_Matrix;