Changes between Initial Version and Version 4 of Ticket #2791


Ignore:
Timestamp:
2014-08-25T13:57:51Z (10 years ago)
Author:
Henrik Tidefelt
Comment:

Sorry about the missing parentheses in the description. Description corrected.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2791

    • Property Status newreopened
    • Property Milestone Future
  • Ticket #2791 – Description

    initial v4  
    1 These examples from version 3.3 of the Modelica specification, section 10.4.1.2 ''Array constructor with several iterators'', do not work (they don't even parse):
     1This example from version 3.3 of the Modelica specification, section 10.4.1.2 ''Array constructor with several iterators'', does not work:
    22{{{
    3 Real hilb[:,:]= {(1/(i+j-1) for i in 1:n, j in 1:n};
    4 Real hilb2[:,:]={{(1/(i+j-1) for j in 1:n} for i in 1:n};
     3model Nested
     4  parameter Integer n = 4;
     5  Real hilb[:,:]= {(1/(i+j-1)) for i in 1:n, j in 1:n};
     6end Nested;
    57}}}
     8
     9Output from the translation:
     10{{{
     11[CodegenC.tpl:9529:14-9529:14] Error: Template error: Code generation does not support multiple iterators: array(DIVISION(1.0, /*Real*/(i + j + -1)) for j in {1, 2, 3, 4}, i in {1, 2, 3, 4})
     12}}}