CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

SLAM.PoseGraph.PGDot

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputxReal[:,:]
inputyReal[size(x,1),size(x,2)]
outputvalueReal

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;