function
LieGroups.Rn.inverse
R^n group inverse
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 | [:] | |
| 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 inverse "R^n group inverse"
input Real x[:];
output Real result[size(x, 1)];
algorithm
result := -x;
end inverse;