Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 11eaca3

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Inline the skew operator.
Belonging to [master]: - #2610
1 parent 2bfa83f commit 11eaca3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Compiler/NFFrontEnd/NFModelicaBuiltin.mo

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,9 @@ end cross;
358358
function skew "The skew matrix associated with the vector"
359359
input Real[3] x;
360360
output Real[3,3] y;
361-
external "builtin" skew(x,y);
362-
annotation(Documentation(info="<html>
361+
algorithm
362+
y := {{0, -x[3], x[2]}, {x[3], 0, -x[1]}, {-x[2], x[1], 0}};
363+
annotation(__OpenModelica_EarlyInline = true, preferredView = "text", Documentation(info="<html>
363364
See <a href=\"modelica://ModelicaReference.Operators.'skew()'\">skew()</a>
364365
</html>"));
365366
end skew;

0 commit comments

Comments
 (0)