Skip to content

Commit

Permalink
[NF] Inline the skew operator.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2610
  • Loading branch information
perost authored and OpenModelica-Hudson committed Aug 20, 2018
1 parent 2bfa83f commit 11eaca3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/NFFrontEnd/NFModelicaBuiltin.mo
Expand Up @@ -358,8 +358,9 @@ end cross;
function skew "The skew matrix associated with the vector"
input Real[3] x;
output Real[3,3] y;
external "builtin" skew(x,y);
annotation(Documentation(info="<html>
algorithm
y := {{0, -x[3], x[2]}, {x[3], 0, -x[1]}, {-x[2], x[1], 0}};
annotation(__OpenModelica_EarlyInline = true, preferredView = "text", Documentation(info="<html>
See <a href=\"modelica://ModelicaReference.Operators.'skew()'\">skew()</a>
</html>"));
end skew;
Expand Down

0 comments on commit 11eaca3

Please sign in to comment.