Opened 14 years ago

Last modified 13 years ago

#1411 closed defect (fixed)

Code generation issue for array-reductions in functions

Reported by: sjoelund.se Owned by: sjoelund.se
Priority: high Milestone:
Component: Version:
Keywords: Cc: sjoelund.se,

Description

{{{ class ArrayCall

function fn

input Integer size;
output Real array[size];

algorithm

array := {cos(i) for i in 1:size};

end fn;
Real x[10] = fn(10);

end ArrayCall; }}}

Change History (2)

comment:1 Changed 14 years ago by perost

I implemented constant evaluation of array reductions, so this model now works. The code generation issues are not resolved though.

comment:2 Changed 13 years ago by sjoelund.se

Fixed with the new reduction implementation

Note: See TracTickets for help on using tickets.