function
SLAM.PoseGraph.PGTranspose
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | A | Real | [3,3] | |
| output | B | Real | [3,3] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function PGTranspose
input Real A[3,3]; output Real B[3,3];
algorithm
B[1,1] := A[1,1];
B[2,1] := A[1,2];
B[3,1] := A[1,3];
B[1,2] := A[2,1];
B[2,2] := A[2,2];
B[3,2] := A[2,3];
B[1,3] := A[3,1];
B[2,3] := A[3,2];
B[3,3] := A[3,3];
end PGTranspose;