function
SLAM.PoseGraph.PGDot
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | x | Real | [:,:] | |
| input | y | Real | [size(x,1),size(x,2)] | |
| output | value | Real | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function PGDot
input Real x[:,:]; input Real y[size(x,1),size(x,2)]; output Real value;
algorithm
value := 0.0;
for i in 1:size(x,1) loop for j in 1:size(x,2) loop value := value+x[i,j]*y[i,j]; end for; end for;
end PGDot;