function
LieGroups.Rn.product
R^n group product
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)] | |
| output | result | Real | [size(x, 1)] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function product "R^n group product"
input Real x[:];
input Real y[size(x, 1)];
output Real result[size(x, 1)];
algorithm
result := x + y;
end product;