function
LieGroups.Rn.wedge
Homogeneous matrix representation of an R^n algebra element
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | tangent | Real | [:] | |
| output | matrixRepresentation | Real | [size(tangent, 1) + 1,
size(tangent, 1) + 1] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function wedge "Homogeneous matrix representation of an R^n algebra element"
input Real tangent[:];
output Real matrixRepresentation[size(tangent, 1) + 1,
size(tangent, 1) + 1];
algorithm
matrixRepresentation := zeros(size(tangent, 1) + 1, size(tangent, 1) + 1);
matrixRepresentation[1:size(tangent, 1), size(tangent, 1) + 1] := tangent;
end wedge;