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

Commit 030f499

Browse files
perostOpenModelica-Hudson
authored andcommitted
Add code generation for 'product'.
Belonging to [master]: - #2492
1 parent df6ecef commit 030f499

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Compiler/Template/CodegenCFunctions.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5578,6 +5578,11 @@ template daeExpCall(Exp call, Context context, Text &preExp, Text &varDecls, Tex
55785578
let ty_str = '<%expTypeArray(ty)%>'
55795579
'sum_<%ty_str%>(<%arr%>)'
55805580

5581+
case CALL(path=IDENT(name="product"), attr=CALL_ATTR(ty = ty), expLst={e}) then
5582+
let arr = daeExp(e, context, &preExp, &varDecls, &auxFunction)
5583+
let ty_str = '<%expTypeArray(ty)%>'
5584+
'product_<%ty_str%>(<%arr%>)'
5585+
55815586
case CALL(path=IDENT(name="min"), attr=CALL_ATTR(ty = T_REAL(__)), expLst={e1,e2}) then
55825587
let var1 = daeExp(e1, context, &preExp, &varDecls, &auxFunction)
55835588
let var2 = daeExp(e2, context, &preExp, &varDecls, &auxFunction)

0 commit comments

Comments
 (0)