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.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | matrixRepresentation | Real | [2, 2] | |
| output | omega | Real | |
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;