Opened 14 years ago

Last modified 14 years ago

#1411 closed defect (fixed)

Code generation issue for array-reductions in functions

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund,

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 by Per Östlund, 14 years ago

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

comment:2 by Martin Sjölund, 14 years ago

Fixed with the new reduction implementation

Note: See TracTickets for help on using tickets.